[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 4/7] bootindex: delete bootindex when device is r
From: |
arei.gonglei |
Subject: |
[Qemu-devel] [PATCH v3 4/7] bootindex: delete bootindex when device is removed |
Date: |
Sat, 26 Jul 2014 12:45:30 +0800 |
From: Gonglei <address@hidden>
Device should be removed from global boot list when
it is hot-unplugged.
Signed-off-by: Chenliang <address@hidden>
Signed-off-by: Gonglei <address@hidden>
---
hw/core/qdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index da1ba48..7bc12bc 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -975,6 +975,8 @@ static void device_finalize(Object *obj)
if (dev->opts) {
qemu_opts_del(dev->opts);
}
+ /* remove device's bootindex from global boot order list */
+ del_boot_device_path(dev);
QLIST_FOREACH_SAFE(ngl, &dev->gpios, node, next) {
QLIST_REMOVE(ngl, node);
--
1.7.12.4