usb-msd: do not register twice in the boot order
commitce4e7e4661af433674f349ccdd5709b4b7a8b2fd
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 18 Nov 2011 15:32:00 +0000 (18 16:32 +0100)
committerKevin Wolf <kwolf@redhat.com>
Tue, 22 Nov 2011 09:33:30 +0000 (22 10:33 +0100)
tree9a3708c7f2b195d95a3398df3452c36725158802
parent3a395142ba99197429a2378930d3c1551fc053cc
usb-msd: do not register twice in the boot order

USB mass storage devices are registered twice in the boot order.
To avoid having to keep the two paths in sync, pass the bootindex
property down to the scsi-disk device and let it register itself.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/pci-hotplug.c
hw/scsi-bus.c
hw/scsi.h
hw/usb-msd.c