diff options
author | Ross Zwisler <ross.zwisler@linux.intel.com> | 2018-06-07 16:31:11 -0600 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2018-06-11 22:19:57 +0300 |
commit | 11c39b5cd966ddc067a1ca0c5392ec9b666c45b7 (patch) | |
tree | aff666dadd919b34c5dac5b69f73b956e40050b3 /include/hw/mem/nvdimm.h | |
parent | 0f3ef1c0628d15e27b1cc4bf9fbd0e5532c59c76 (diff) | |
download | qemu-11c39b5cd966ddc067a1ca0c5392ec9b666c45b7.zip qemu-11c39b5cd966ddc067a1ca0c5392ec9b666c45b7.tar.gz qemu-11c39b5cd966ddc067a1ca0c5392ec9b666c45b7.tar.bz2 |
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/nvdimm.h')
-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 3c82751..9340631 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; |