summaryrefslogtreecommitdiffstats
path: root/hw/acpi
diff options
context:
space:
mode:
authorRoss Zwisler2018-06-08 00:31:11 +0200
committerMichael S. Tsirkin2018-06-11 21:19:57 +0200
commit11c39b5cd966ddc067a1ca0c5392ec9b666c45b7 (patch)
treeaff666dadd919b34c5dac5b69f73b956e40050b3 /hw/acpi
parenthw/i386: Update SSDT table used by "make check" (diff)
downloadqemu-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 'hw/acpi')
-rw-r--r--hw/acpi/nvdimm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/acpi/nvdimm.c b/hw/acpi/nvdimm.c
index 87e4280c71..27eeb6609f 100644
--- a/hw/acpi/nvdimm.c
+++ b/hw/acpi/nvdimm.c
@@ -404,8 +404,8 @@ static GArray *nvdimm_build_device_structure(AcpiNVDIMMState *state)
}
g_slist_free(device_list);
- if (state->capabilities) {
- nvdimm_build_structure_caps(structures, state->capabilities);
+ if (state->persistence) {
+ nvdimm_build_structure_caps(structures, state->persistence);
}
return structures;