OSDN Git Service

nvdimm acpi: prebuild nvdimm devices for available slots
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Fri, 28 Oct 2016 16:35:37 +0000 (00:35 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 1 Nov 2016 17:21:09 +0000 (19:21 +0200)
commitbdfd065b1f75cacca21af0b8d4811c64cc48d04c
tree5b84f6cd8efcc891c507760efcf37e4bb014e612
parent3ae66c45f94fe806c58daf95142d917ad14f7afb
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>
hw/acpi/nvdimm.c
hw/i386/acpi-build.c
include/hw/mem/nvdimm.h