summaryrefslogtreecommitdiffstats
path: root/hw/acpi
diff options
context:
space:
mode:
authorXiao Guangrong2016-11-07 12:13:36 +0100
committerMichael S. Tsirkin2016-11-15 16:20:37 +0100
commitc7f8d0f3a52b5ef8fdcd305cce438f67d7e06a9f (patch)
tree6d28df4ece2e18a9888aeab2e05d80a7419e5122 /hw/acpi
parentvhost: migration blocker only if shared log is used (diff)
downloadqemu-c7f8d0f3a52b5ef8fdcd305cce438f67d7e06a9f.tar.gz
qemu-c7f8d0f3a52b5ef8fdcd305cce438f67d7e06a9f.tar.xz
qemu-c7f8d0f3a52b5ef8fdcd305cce438f67d7e06a9f.zip
qdev: hotplug: drop HotplugHandler.post_plug callback
as nvdimm acpi is okay to build fit when the nvdimm device has not been 'realized' Suggested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Diffstat (limited to 'hw/acpi')
-rw-r--r--hw/acpi/nvdimm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/acpi/nvdimm.c b/hw/acpi/nvdimm.c
index 602ec54485..623bb36ee3 100644
--- a/hw/acpi/nvdimm.c
+++ b/hw/acpi/nvdimm.c
@@ -38,11 +38,7 @@ static int nvdimm_plugged_device_list(Object *obj, void *opaque)
GSList **list = opaque;
if (object_dynamic_cast(obj, TYPE_NVDIMM)) {
- DeviceState *dev = DEVICE(obj);
-
- if (dev->realized) { /* only realized NVDIMMs matter */
- *list = g_slist_append(*list, DEVICE(obj));
- }
+ *list = g_slist_append(*list, DEVICE(obj));
}
object_child_foreach(obj, nvdimm_plugged_device_list, opaque);