summaryrefslogtreecommitdiffstats
path: root/hw/scsi.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-11-18 16:32:00 +0100
committerKevin Wolf <kwolf@redhat.com>2011-11-22 10:33:30 +0100
commitce4e7e4661af433674f349ccdd5709b4b7a8b2fd (patch)
tree9a3708c7f2b195d95a3398df3452c36725158802 /hw/scsi.h
parent3a395142ba99197429a2378930d3c1551fc053cc (diff)
downloadhqemu-ce4e7e4661af433674f349ccdd5709b4b7a8b2fd.zip
hqemu-ce4e7e4661af433674f349ccdd5709b4b7a8b2fd.tar.gz
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>
Diffstat (limited to 'hw/scsi.h')
-rw-r--r--hw/scsi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/scsi.h b/hw/scsi.h
index 61c64d5..ab6e952 100644
--- a/hw/scsi.h
+++ b/hw/scsi.h
@@ -128,7 +128,7 @@ static inline SCSIBus *scsi_bus_from_device(SCSIDevice *d)
}
SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockDriverState *bdrv,
- int unit, bool removable);
+ int unit, bool removable, int bootindex);
int scsi_bus_legacy_handle_cmdline(SCSIBus *bus);
/*
OpenPOWER on IntegriCloud