summaryrefslogtreecommitdiffstats
path: root/hw/scsi/scsi-generic.c
diff options
context:
space:
mode:
authorGonglei2014-10-07 10:00:36 +0200
committerGerd Hoffmann2014-10-15 10:46:01 +0200
commitd749e10c4f97a0239180215c6d7d18712361a430 (patch)
tree9772a48a6a203f4e21ab1ad2166f6473bfd053d1 /hw/scsi/scsi-generic.c
parentide: add calling add_boot_device_patch in bootindex setter function (diff)
downloadqemu-d749e10c4f97a0239180215c6d7d18712361a430.tar.gz
qemu-d749e10c4f97a0239180215c6d7d18712361a430.tar.xz
qemu-d749e10c4f97a0239180215c6d7d18712361a430.zip
bootindex: move calling add_boot_device_patch to bootindex setter function
On this way, we can assure the new bootindex take effect during vm rebooting. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/scsi/scsi-generic.c')
-rw-r--r--hw/scsi/scsi-generic.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c
index 03b980c44d..84a1d5bfe3 100644
--- a/hw/scsi/scsi-generic.c
+++ b/hw/scsi/scsi-generic.c
@@ -413,9 +413,6 @@ static void scsi_generic_realize(SCSIDevice *s, Error **errp)
/* define device state */
s->type = scsiid.scsi_type;
DPRINTF("device type %d\n", s->type);
- if (s->type == TYPE_DISK || s->type == TYPE_ROM) {
- add_boot_device_path(s->conf.bootindex, &s->qdev, NULL);
- }
switch (s->type) {
case TYPE_TAPE: