diff options
author | Xiao Guangrong | 2015-12-02 08:20:56 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2015-12-22 17:39:20 +0100 |
commit | 5c42eef24314fb51600b0e90fb69c60653ea05bb (patch) | |
tree | e2ca35859fec1f99d81a24c49312c2ca1ef8ce9d /hw/acpi/memory_hotplug.c | |
parent | docs/pci_expander_bridge: fix typo (diff) | |
download | qemu-5c42eef24314fb51600b0e90fb69c60653ea05bb.tar.gz qemu-5c42eef24314fb51600b0e90fb69c60653ea05bb.tar.xz qemu-5c42eef24314fb51600b0e90fb69c60653ea05bb.zip |
nvdimm: implement NVDIMM device abstract
Introduce "nvdimm" device which is based on pc-dimm device type
Currently, nothing is specific for nvdimm but hotplug is disabled
Reviewed-by: Stefan Hajnoczi <stefanha@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>
Diffstat (limited to 'hw/acpi/memory_hotplug.c')
-rw-r--r-- | hw/acpi/memory_hotplug.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/acpi/memory_hotplug.c b/hw/acpi/memory_hotplug.c index e4b9a01f80..298e8682af 100644 --- a/hw/acpi/memory_hotplug.c +++ b/hw/acpi/memory_hotplug.c @@ -231,6 +231,11 @@ void acpi_memory_plug_cb(ACPIREGS *ar, qemu_irq irq, MemHotplugState *mem_st, DeviceState *dev, Error **errp) { MemStatus *mdev; + DeviceClass *dc = DEVICE_GET_CLASS(dev); + + if (!dc->hotpluggable) { + return; + } mdev = acpi_memory_slot_status(mem_st, dev, errp); if (!mdev) { |