diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-08-28 12:46:18 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-08-28 14:50:08 +0200 |
commit | 0f1da449ec65403bc5c028eb9618d0ee598a3615 (patch) | |
tree | 92fdd3588cd6c21e218742e2aa78132380af621e /hw/scsi-generic.c | |
parent | 9ea73f8b10531de4b1173835c819b7c35b7160c6 (diff) | |
download | qemu-0f1da449ec65403bc5c028eb9618d0ee598a3615.zip qemu-0f1da449ec65403bc5c028eb9618d0ee598a3615.tar.gz qemu-0f1da449ec65403bc5c028eb9618d0ee598a3615.tar.bz2 |
scsi: more fixes to properties for passthrough devices
Commit 0384783 (scsi-block: remove properties that are not relevant for
passthrough, 2012-07-09) removed one property that should have been
left there, "bootindex".
It also did not touch scsi-generic, while it should have.
Fix both problems.
Reported-by: Alexandre DERUMIER <aderumier@odiso.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/scsi-generic.c')
-rw-r--r-- | hw/scsi-generic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/scsi-generic.c b/hw/scsi-generic.c index 8d51060..a5eb663 100644 --- a/hw/scsi-generic.c +++ b/hw/scsi-generic.c @@ -479,7 +479,8 @@ static SCSIRequest *scsi_new_request(SCSIDevice *d, uint32_t tag, uint32_t lun, } static Property scsi_generic_properties[] = { - DEFINE_BLOCK_PROPERTIES(SCSIDevice, conf), + DEFINE_PROP_DRIVE("drive", SCSIDevice, conf.bs), + DEFINE_PROP_INT32("bootindex", SCSIDevice, conf.bootindex, -1), DEFINE_PROP_END_OF_LIST(), }; |