]> git.proxmox.com Git - qemu.git/commit - configure
Configurable block format whitelist
authorMarkus Armbruster <armbru@redhat.com>
Tue, 27 Oct 2009 17:41:44 +0000 (18:41 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 9 Nov 2009 14:43:02 +0000 (08:43 -0600)
commiteb852011ab3c56bd1f8e9d2c7d0dfb3eb321430a
tree94af2a13cc119c6f43b3514373a2db2a81ed3f87
parent39a51dfda835a75c0ebbfd92705b96e4de77f795
Configurable block format whitelist

We have code for a quite a few block formats.  While I trust that all
of these formats are useful at least for some people in some
circumstances, some of them are of a kind that friends don't let
friends use in production.

This patch provides an optional block format whitelist, default off.
If a whitelist is configured with --block-drv-whitelist, QEMU proper
can use only whitelisted formats.  Other programs, like qemu-img, are
not affected.

Drivers for formats off the whitelist still participate in format
probing, to ensure all programs probe exactly the same.  Without that,
QEMU proper would be prone to treat images with a format off the
whitelist as raw when the image's format is probed.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
block.c
block.h
configure
create_config
hw/xen_disk.c
monitor.c
vl.c