]> git.proxmox.com Git - mirror_qemu.git/commit - hw/i386/pc_piix.c
machine: Move nvdimms state into struct MachineState
authorEric Auger <eric.auger@redhat.com>
Fri, 8 Mar 2019 18:20:53 +0000 (19:20 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 11 Mar 2019 13:44:25 +0000 (10:44 -0300)
commitf6a0d06ba72a0c493e1e05872caf2f3781af316d
tree19fd6ed21c17ef6bfe53733bbc4bdeb5169f23b4
parentc1404bde9cb326a42327c892e25ecbfcce806a3d
machine: Move nvdimms state into struct MachineState

As NVDIMM support is looming for ARM and SPAPR, let's
move the acpi_nvdimm_state to the generic machine struct
instead of duplicating the same code in several machines.
It is also renamed into nvdimms_state and becomes a pointer.

nvdimm and nvdimm-persistence become generic machine options.
They become guarded by a nvdimm_supported machine class member.
We also add a description for those options.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Suggested-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20190308182053.5487-3-eric.auger@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
hw/core/machine.c
hw/i386/acpi-build.c
hw/i386/pc.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
include/hw/boards.h
include/hw/i386/pc.h