allow if=none for drive_add
commit7101174e5cd37ed57fadbba9515f2f3e15aec47d
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 25 Sep 2009 19:42:48 +0000 (25 21:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 5 Oct 2009 14:32:49 +0000 (5 09:32 -0500)
tree2b333b88e7d54be73aee2d1a1a965f5817b094e0
parent4db49dc087dcac6423e729a4bb076052c5e4b615
allow if=none for drive_add

Allow adding unconnected host drives by specifying if=none like it is
possible with -drive.  They can be put in use with drive attributes,
like this:

  drive_add dummy if=none,id=mydisk,file=/some/disk.img
  device_add virtio-blk-pci,drive=mydisk

which is the monitor aequivalent to these command line switches:

  -drive if=none,id=mydisk,file=/some/disk.img
  -device virtio-blk-pci,drive=mydisk

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/pci-hotplug.c