Message ID | 1407156382-2836-5-git-send-email-arei.gonglei@huawei.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/core/qdev.c b/hw/core/qdev.c index da1ba48..70294ad 100644 --- a/hw/core/qdev.c +++ b/hw/core/qdev.c @@ -972,6 +972,10 @@ static void device_finalize(Object *obj) NamedGPIOList *ngl, *next; DeviceState *dev = DEVICE(obj); + + /* remove device's bootindex from global boot order list */ + del_boot_device_path(dev); + if (dev->opts) { qemu_opts_del(dev->opts); }