mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
nvdimm, acpi: support NFIT platform capabilities
Add a machine command line option to allow the user to control the Platform Capabilities Structure in the virtualized NFIT. This Platform Capabilities Structure was added in ACPI 6.2 Errata A. Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
2e0c56cdde
commit
9ab3aad281
5 changed files with 105 additions and 4 deletions
|
|
@ -76,6 +76,7 @@ struct PCMachineState {
|
|||
#define PC_MACHINE_VMPORT "vmport"
|
||||
#define PC_MACHINE_SMM "smm"
|
||||
#define PC_MACHINE_NVDIMM "nvdimm"
|
||||
#define PC_MACHINE_NVDIMM_CAP "nvdimm-cap"
|
||||
#define PC_MACHINE_SMBUS "smbus"
|
||||
#define PC_MACHINE_SATA "sata"
|
||||
#define PC_MACHINE_PIT "pit"
|
||||
|
|
|
|||
|
|
@ -134,6 +134,11 @@ struct AcpiNVDIMMState {
|
|||
|
||||
/* the IO region used by OSPM to transfer control to QEMU. */
|
||||
MemoryRegion io_mr;
|
||||
|
||||
/*
|
||||
* Platform capabilities, section 5.2.25.9 of ACPI 6.2 Errata A
|
||||
*/
|
||||
int32_t capabilities;
|
||||
};
|
||||
typedef struct AcpiNVDIMMState AcpiNVDIMMState;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue