qdev/scsi+usb: convert usb-storage to qdev.
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 31 Aug 2009 12:24:05 +0000 (14:24 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 9 Sep 2009 19:57:19 +0000 (14:57 -0500)
commit7fc2f2c0869f68eaa42446e5a394d79bb7c9f7f7
tree99e3e687a26ee2bf0a7ae382b750e7febc9e445d
parentd52affa7f6b9df3c7d44da0effbdfc8339c43914
qdev/scsi+usb: convert usb-storage to qdev.

Full coverage with properties and everything.  You can add virtual usb
sticks this way now:

  -drive if=none,id=pendrive,path=/some/where
  -device usb-storage,drive=pendrive

-usbdevice disk:/path/to/image continues to work.

Other side effects:
usb storage is listed in 'info block' now.
kvm tree should be able to boot from usb via extboot (untested though).

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