]> git.proxmox.com Git - mirror_qemu.git/commitdiff
bootindex: support to set a existent device's bootindex to -1
authorGonglei <arei.gonglei@huawei.com>
Tue, 7 Oct 2014 08:00:10 +0000 (16:00 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 15 Oct 2014 07:52:47 +0000 (09:52 +0200)
When set a device's bootindex to -1, we remove it from global
fw_boot_order list.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
bootdevice.c

index aac0ffbcefcb2788b1f4caeeebb215ad550b1c52..a38479a72a933d7ab3d84c17d5dd35b38d003607 100644 (file)
@@ -77,6 +77,7 @@ void add_boot_device_path(int32_t bootindex, DeviceState *dev,
     FWBootEntry *node, *i;
 
     if (bootindex < 0) {
+        del_boot_device_path(dev, suffix);
         return;
     }