summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXiao Guangrong2016-10-28 18:35:37 +0200
committerMichael S. Tsirkin2016-11-01 18:21:09 +0100
commitbdfd065b1f75cacca21af0b8d4811c64cc48d04c (patch)
tree5b84f6cd8efcc891c507760efcf37e4bb014e612 /include
parentnvdimm acpi: use common macros instead of magic names (diff)
downloadqemu-bdfd065b1f75cacca21af0b8d4811c64cc48d04c.tar.gz
qemu-bdfd065b1f75cacca21af0b8d4811c64cc48d04c.tar.xz
qemu-bdfd065b1f75cacca21af0b8d4811c64cc48d04c.zip
nvdimm acpi: prebuild nvdimm devices for available slots
For each NVDIMM present or intended to be supported by platform, platform firmware also exposes an ACPI Namespace Device under the root device So it builds nvdimm devices for all slots to support vNVDIMM hotplug 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 'include')
-rw-r--r--include/hw/mem/nvdimm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/mem/nvdimm.h b/include/hw/mem/nvdimm.h
index 1cfe9e01c4..63a2b20fa9 100644
--- a/include/hw/mem/nvdimm.h
+++ b/include/hw/mem/nvdimm.h
@@ -112,5 +112,6 @@ typedef struct AcpiNVDIMMState AcpiNVDIMMState;
void nvdimm_init_acpi_state(AcpiNVDIMMState *state, MemoryRegion *io,
FWCfgState *fw_cfg, Object *owner);
void nvdimm_build_acpi(GArray *table_offsets, GArray *table_data,
- BIOSLinker *linker, GArray *dsm_dma_arrea);
+ BIOSLinker *linker, GArray *dsm_dma_arrea,
+ uint32_t ram_slots);
#endif