qdev/scsi: add scsi bus support to qdev, convert drivers.
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 31 Aug 2009 12:24:04 +0000 (14:24 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 9 Sep 2009 19:57:19 +0000 (14:57 -0500)
commitd52affa7f6b9df3c7d44da0effbdfc8339c43914
treef846e1baed7d228519ba95bfd3d915529e7172f9
parent5b19d9a247c47fe52c4f3d3e844009a689ee6b28
qdev/scsi: add scsi bus support to qdev, convert drivers.

* Add SCSIBus.
 * Add SCSIDeviceInfo, move device callbacks here.
 * add qdev/scsi helper functions.
 * convert drivers.

Adding scsi disks via -device works now, i.e. you can do:

 -drive id=sda,if=none,...
 -device lsi
 -device scsi-disk,drive=sda

legacy command lines (-drive if=scsi,...) continue to work.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
12 files changed:
Makefile
hw/esp.c
hw/lsi53c895a.c
hw/pci-hotplug.c
hw/pci.h
hw/qdev.c
hw/qdev.h
hw/scsi-bus.c [new file with mode: 0644]
hw/scsi-disk.c
hw/scsi-disk.h
hw/scsi-generic.c
hw/usb-msd.c