diff options
author | Ross Zwisler | 2018-06-08 00:31:11 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2018-06-11 21:19:57 +0200 |
commit | 11c39b5cd966ddc067a1ca0c5392ec9b666c45b7 (patch) | |
tree | aff666dadd919b34c5dac5b69f73b956e40050b3 /include/hw/mem | |
parent | hw/i386: Update SSDT table used by "make check" (diff) | |
download | qemu-11c39b5cd966ddc067a1ca0c5392ec9b666c45b7.tar.gz qemu-11c39b5cd966ddc067a1ca0c5392ec9b666c45b7.tar.xz qemu-11c39b5cd966ddc067a1ca0c5392ec9b666c45b7.zip |
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>
Diffstat (limited to 'include/hw/mem')
-rw-r--r-- | include/hw/mem/nvdimm.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/mem/nvdimm.h b/include/hw/mem/nvdimm.h index 3c82751bab..9340631cfc 100644 --- a/include/hw/mem/nvdimm.h +++ b/include/hw/mem/nvdimm.h @@ -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; |