mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue