diff options
author | Xiao Guangrong | 2016-10-28 18:35:40 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2016-11-01 18:21:09 +0100 |
commit | b097cc52fc9126bd1a71dae8302b8536d28104dd (patch) | |
tree | 334774fab08978bf302a83149cbf867df68d0286 /hw/mem/nvdimm.c | |
parent | nvdimm acpi: introduce _FIT (diff) | |
download | qemu-b097cc52fc9126bd1a71dae8302b8536d28104dd.tar.gz qemu-b097cc52fc9126bd1a71dae8302b8536d28104dd.tar.xz qemu-b097cc52fc9126bd1a71dae8302b8536d28104dd.zip |
pc: memhp: enable nvdimm device hotplug
_GPE.E04 is dedicated for nvdimm device hotplug
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>
Diffstat (limited to 'hw/mem/nvdimm.c')
-rw-r--r-- | hw/mem/nvdimm.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c index 7895805a23..db896b0bb6 100644 --- a/hw/mem/nvdimm.c +++ b/hw/mem/nvdimm.c @@ -148,13 +148,9 @@ static MemoryRegion *nvdimm_get_vmstate_memory_region(PCDIMMDevice *dimm) static void nvdimm_class_init(ObjectClass *oc, void *data) { - DeviceClass *dc = DEVICE_CLASS(oc); PCDIMMDeviceClass *ddc = PC_DIMM_CLASS(oc); NVDIMMClass *nvc = NVDIMM_CLASS(oc); - /* nvdimm hotplug has not been supported yet. */ - dc->hotpluggable = false; - ddc->realize = nvdimm_realize; ddc->get_memory_region = nvdimm_get_memory_region; ddc->get_vmstate_memory_region = nvdimm_get_vmstate_memory_region; |