summaryrefslogtreecommitdiffstats
path: root/bootdevice.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-10-07 16:00:10 +0800
committerGerd Hoffmann <kraxel@redhat.com>2014-10-15 09:52:47 +0200
commita598f2ffc2df59afcea5454fb353b849911da90b (patch)
tree67d6152c0c06e67bfb147553e7aae1f5554c13cc /bootdevice.c
parente614b54b9340e6fe14eaecd378a2d7d7ebcde736 (diff)
downloadhqemu-a598f2ffc2df59afcea5454fb353b849911da90b.zip
hqemu-a598f2ffc2df59afcea5454fb353b849911da90b.tar.gz
bootindex: support to set a existent device's bootindex to -1
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>
Diffstat (limited to 'bootdevice.c')
-rw-r--r--bootdevice.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bootdevice.c b/bootdevice.c
index aac0ffb..a38479a 100644
--- a/bootdevice.c
+++ b/bootdevice.c
@@ -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;
}
OpenPOWER on IntegriCloud