diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-10-07 16:00:36 +0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-10-15 10:46:01 +0200 |
commit | d749e10c4f97a0239180215c6d7d18712361a430 (patch) | |
tree | 9772a48a6a203f4e21ab1ad2166f6473bfd053d1 /hw/scsi/scsi-generic.c | |
parent | d2b186f96d19c1f8a6b7e528ff32c24096d5b204 (diff) | |
download | qemu-d749e10c4f97a0239180215c6d7d18712361a430.zip qemu-d749e10c4f97a0239180215c6d7d18712361a430.tar.gz qemu-d749e10c4f97a0239180215c6d7d18712361a430.tar.bz2 |
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.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c index 03b980c..84a1d5b 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: |