mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
nvdimm: make persistence option symbolic
Replace the "nvdimm-cap" option which took numeric arguments such as "2" with a more user friendly "nvdimm-persistence" option which takes symbolic arguments "cpu" or "mem-ctrl". Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Suggested-by: Michael S. Tsirkin <mst@redhat.com> Suggested-by: Dan Williams <dan.j.williams@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
0f3ef1c062
commit
11c39b5cd9
6 changed files with 34 additions and 41 deletions
|
@ -76,7 +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_NVDIMM_PERSIST "nvdimm-persistence"
|
||||
#define PC_MACHINE_SMBUS "smbus"
|
||||
#define PC_MACHINE_SATA "sata"
|
||||
#define PC_MACHINE_PIT "pit"
|
||||
|
|
|
@ -138,7 +138,8 @@ struct AcpiNVDIMMState {
|
|||
/*
|
||||
* Platform capabilities, section 5.2.25.9 of ACPI 6.2 Errata A
|
||||
*/
|
||||
int32_t capabilities;
|
||||
int32_t persistence;
|
||||
char *persistence_string;
|
||||
};
|
||||
typedef struct AcpiNVDIMMState AcpiNVDIMMState;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue