On Tue, Aug 02, 2016 at 10:12:16AM -0400, Colin Lord wrote: > Extend the current module interface to allow for block drivers to be > loaded dynamically on request. The only block drivers that can be > converted into modules are the drivers that don't perform any init > operation except for registering themselves. > > In addition, only the protocol drivers are being modularized, as they > are the only ones which see significant performance benefits. The format > drivers do not generally link to external libraries, so modularizing > them is of no benefit from a performance perspective. > > All the necessary module information is located in a new structure found > in module_block.h > > Signed-off-by: Marc Marí > Signed-off-by: Colin Lord > --- > Makefile | 3 --- > block.c | 62 +++++++++++++++++++++++++++++++++++++++++++++------ > block/Makefile.objs | 3 +-- > include/qemu/module.h | 3 +++ > util/module.c | 38 +++++++++---------------------- > 5 files changed, 70 insertions(+), 39 deletions(-) Reviewed-by: Stefan Hajnoczi