[Qemu-devel] [PATCH v3 04/32] blockdev: Move bochs probe into separate file

2016-07-05 Thread Colin Lord
This puts the bochs probe function into its own separate file as part of the process of modularizing block drivers. Having the probe functions separate from the rest of the driver allows us to probe without having to potentially unnecessarily load the driver. Signed-off-by: Colin Lord --- block

[Qemu-devel] [PATCH v3 10/32] blockdev: Move qcow2 probe to its own file

2016-07-05 Thread Colin Lord
Isolates qcow2 probe as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs | 2 +- block/probe/qcow2.c | 16 block/qcow2.c | 13 + include/block/probe.h | 1 + 4 files changed, 19 insertions(+), 13 deletions

[Qemu-devel] [PATCH v3 02/32] blockdev: Add dynamic generation of module_block.h

2016-07-05 Thread Colin Lord
From: Marc Mari To simplify the addition of new block modules, add a script that generates module_block.h automatically from the modules' source code. This script assumes that the QEMU coding style rules are followed. Signed-off-by: Marc MarĂ­ Signed-off-by: Colin Lord --- Mak

[Qemu-devel] [PATCH v3 05/32] blockdev: Move cloop probe to its own file

2016-07-05 Thread Colin Lord
Isolates cloop probing function as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs | 2 +- block/cloop.c | 16 +--- block/probe/cloop.c | 17 + include/block/probe.h | 1 + 4 files changed, 20 insertions(+), 16

[Qemu-devel] [PATCH v3 07/32] blockdev: Move dmg probe to its own file

2016-07-05 Thread Colin Lord
Isolate dmg probe as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs | 2 +- block/dmg.c | 16 +--- block/probe/dmg.c | 17 + include/block/probe.h | 1 + 4 files changed, 20 insertions(+), 16 deletions

[Qemu-devel] [PATCH v3 20/32] blockdev: Separate dmg probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the dmg probe from the dmg driver. The dmg probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1

[Qemu-devel] [PATCH v3 03/32] blockdev: Add dynamic module loading for block drivers

2016-07-05 Thread Colin Lord
odule information is located in a new structure found in module_block.h Signed-off-by: Marc MarĂ­ Signed-off-by: Colin Lord --- block.c | 110 ++ include/qemu/module.h | 3 ++ util/module.c | 38 + 3 files changed

[Qemu-devel] [PATCH v3 12/32] blockdev: Move raw probe to its own file

2016-07-05 Thread Colin Lord
Isolate raw probe as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs | 1 + block/probe/raw.c | 10 ++ block/raw_bsd.c | 9 + include/block/probe.h | 1 + 4 files changed, 13 insertions(+), 8 deletions(-) create mode 100644

[Qemu-devel] [PATCH v3 18/32] blockdev: Separate cloop probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the cloop probe from the cloop driver. The cloop probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1

[Qemu-devel] [PATCH v3 01/32] blockdev: prepare iSCSI block driver for dynamic loading

2016-07-05 Thread Colin Lord
This commit moves the initialization of the QemuOptsList qemu_iscsi_opts struct out of block/iscsi.c in order to allow the iscsi module to be dynamically loaded. Signed-off-by: Colin Lord --- block/iscsi.c | 36 vl.c | 38

[Qemu-devel] [PATCH v3 08/32] blockdev: Move parallels probe to its own file

2016-07-05 Thread Colin Lord
Isolate parallels probe as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs | 1 + block/parallels.c| 43 ++-- block/probe/parallels.c | 22 include/block/driver

[Qemu-devel] [PATCH v3 00/32] Dynamic module loading for block drivers

2016-07-05 Thread Colin Lord
ough 4.167 curl5.245 spice 5.289 gnutls 5.400 gtk 8.782 vte 9.764 rbd 44.315 Colin Lord (30): blockdev: prepare iSCSI block driver for dynamic loading blockdev: Move bochs probe into separate file bloc

[Qemu-devel] [PATCH v3 16/32] blockdev: Move vpc probe to its own file

2016-07-05 Thread Colin Lord
Isolates vpc probe as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs | 2 +- block/probe/vpc.c | 9 + block/vpc.c | 8 +--- include/block/probe.h | 1 + 4 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 block

[Qemu-devel] [PATCH v3 15/32] blockdev: Move vmdk probe to its own file

2016-07-05 Thread Colin Lord
Isolates vmdk probe as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs | 2 +- block/probe/vmdk.c | 60 + block/vmdk.c| 60 ++--- include

[Qemu-devel] [PATCH v3 19/32] blockdev: Separate luks probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the luks probe from the crypto driver. The luks probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1

[Qemu-devel] [PATCH v3 09/32] blockdev: Move qcow probe to its own file

2016-07-05 Thread Colin Lord
Isolates qcow probe as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs | 2 +- block/probe/qcow.c | 16 block/qcow.c| 31 ++- include/block/driver/qcow.h | 21

[Qemu-devel] [PATCH v3 14/32] blockdev: Move vhdx probe to its own file

2016-07-05 Thread Colin Lord
Isolates vhdx probe as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs | 2 +- block/probe/vhdx.c| 21 + block/vhdx.c | 20 +--- include/block/probe.h | 1 + 4 files changed, 24 insertions(+), 20

[Qemu-devel] [PATCH v3 11/32] blockdev: Move qed probe to its own file

2016-07-05 Thread Colin Lord
Isolate qed probe as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs | 2 +- block/probe/qed.c | 18 ++ block/qed.c | 15 +-- include/block/probe.h | 1 + 4 files changed, 21 insertions(+), 15 deletions

[Qemu-devel] [PATCH v3 17/32] blockdev: Separate bochs probe from its driver

2016-07-05 Thread Colin Lord
allows the score to be correlated to the driver without the probe function needing to be part of the driver. Signed-off-by: Colin Lord --- block.c | 19 +++ block/bochs.c | 1 - block/probe/bochs.c | 25 - include/block/probe.h | 3

[Qemu-devel] [PATCH v3 13/32] blockdev: Move vdi probe to its own file

2016-07-05 Thread Colin Lord
Isolates vdi probe as part of the modularization process. Signed-off-by: Colin Lord --- block/Makefile.objs| 2 +- block/probe/vdi.c | 26 + block/vdi.c| 69 ++ include/block/driver/vdi.h | 49

[Qemu-devel] [PATCH v3 24/32] blockdev: Separate qed probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the qed probe from the qed driver. The qed probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1

[Qemu-devel] [PATCH v3 26/32] blockdev: Separate vdi probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the vdi probe from the vdi driver. The vdi probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1

[Qemu-devel] [PATCH v3 31/32] blockdev: Separate out bdrv_probe_device functions

2016-07-05 Thread Colin Lord
This puts the bdrv_probe_device functions into their own files to facilitate the modularization of the block drivers. Signed-off-by: Colin Lord --- block/Makefile.objs | 1 + block/probe/host_cdrom.c | 40 + block/probe/host_device.c | 30

[Qemu-devel] [PATCH v3 23/32] blockdev: Separate qcow2 probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the qcow2 probe from the qcow2 driver. The qcow2 probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1

[Qemu-devel] [PATCH v3 22/32] blockdev: Separate qcow probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the qcow probe from the qcow driver. The qcow probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1

[Qemu-devel] [PATCH v3 21/32] blockdev: Separate parallels probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the parallels probe from the parallels driver. The parallels probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c

[Qemu-devel] [PATCH v3 28/32] blockdev: Separate vmdk probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the vmdk probe from the vmdk driver. The vmdk probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1

[Qemu-devel] [PATCH v3 29/32] blockdev: Separate vpc probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the vpc probe from the vpc driver. The vpc probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1

[Qemu-devel] [PATCH v3 25/32] blockdev: Separate raw probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the raw probe from the raw driver. The raw probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1 + block

[Qemu-devel] [PATCH v3 27/32] blockdev: Separate vhdx probe from its driver

2016-07-05 Thread Colin Lord
Completes the separation of the vhdx probe from the vhdx driver. The vhdx probe now returns the format in addition to the score, allowing correlation of the score and driver without the probe function being part of the driver itself. Signed-off-by: Colin Lord --- block.c | 1

[Qemu-devel] [PATCH v3 30/32] blockdev: Remove the .bdrv_probe field from BlockDrivers

2016-07-05 Thread Colin Lord
This commit finalizes the separation of the block driver and probe function by removing the .bdrv_probe field from all BlockDrivers. Probing is now accomplished solely by iterating over the array of probe function pointers in the format_probes array. Signed-off-by: Colin Lord --- block.c

[Qemu-devel] [PATCH v3 32/32] blockdev: Remove bdrv_probe_device field from BlockDriver

2016-07-05 Thread Colin Lord
This commit finalizes the separation of the BlockDriver from its device probing function. Now the accesses to these functions in block.c occur through the protocol_probes array, and each function returns a score and protocol name with which to find the corresponding driver. Signed-off-by: Colin

<    1   2