xemu/hw/block
Fam Zheng b64ec4e4ad block: add block driver read only whitelist
We may want to include a driver in the whitelist for read only tasks
such as diagnosing or exporting guest data (with libguestfs as a good
example). This patch introduces a readonly whitelist option, and for
backward compatibility, the old configure option --block-drv-whitelist
is now an alias to rw whitelist.

Drivers in readonly list is only permitted to open file readonly, and
returns -ENOTSUP for RW opening.

E.g. To include vmdk readonly, and others read+write:
    ./configure --target-list=x86_64-softmmu \
                --block-drv-rw-whitelist=qcow2,raw,file,qed \
                --block-drv-ro-whitelist=vmdk

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-06-04 12:11:58 +02:00
..
dataplane virtio: remove virtiobindings. 2013-04-24 11:50:20 -05:00
block.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
cdrom.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
ecc.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
fdc.c fdc: QOM'ify ISA floppy controller 2013-04-29 08:27:47 -05:00
hd-geometry.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
m25p80.c m25p80: Add Micron n25q032a 2013-06-01 14:25:39 +04:00
Makefile.objs hw: move block devices to hw/block/, configure via default-configs/ 2013-04-08 18:13:13 +02:00
nand.c hw: move target-independent files to subdirectories 2013-04-08 18:13:12 +02:00
onenand.c hw: move block devices to hw/block/, configure via default-configs/ 2013-04-08 18:13:13 +02:00
pc_sysfw.c pc_sysfw: allow flash (-pflash) memory to be used with KVM 2013-05-29 08:15:36 -05:00
pflash_cfi01.c memory: Rename readable flag to romd_mode 2013-05-24 18:42:46 +02:00
pflash_cfi02.c memory: Rename readable flag to romd_mode 2013-05-24 18:42:46 +02:00
tc58128.c hw: move block devices to hw/block/, configure via default-configs/ 2013-04-08 18:13:13 +02:00
virtio-blk.c virtio: cleanup: init and exit function. 2013-04-24 11:50:21 -05:00
xen_blkif.h hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
xen_disk.c block: add block driver read only whitelist 2013-06-04 12:11:58 +02:00