aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShivaprasad G Bhat <sbhat@linux.ibm.com>2020-02-09 22:56:13 -0600
committerDavid Gibson <david@gibson.dropbear.id.au>2020-02-21 09:15:04 +1100
commit6c5627bb24dcd68c997857a8b671617333b1289f (patch)
tree01c1463b0d8669c1b45e8fbf176710c546dc2cb8 /include
parent3f350f6bb36233be50fc2bc18dc78b6a948a5dbe (diff)
downloadqemu-6c5627bb24dcd68c997857a8b671617333b1289f.zip
qemu-6c5627bb24dcd68c997857a8b671617333b1289f.tar.gz
qemu-6c5627bb24dcd68c997857a8b671617333b1289f.tar.bz2
nvdimm: add uuid property to nvdimm
For ppc64, PAPR requires the nvdimm device to have UUID property set in the device tree. Add an option to get it from the user. Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Message-Id: <158131056931.2897.14057087440721445976.stgit@lep8c.aus.stglabs.ibm.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include')
-rw-r--r--include/hw/mem/nvdimm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hw/mem/nvdimm.h b/include/hw/mem/nvdimm.h
index 523a9b3..4807ca6 100644
--- a/include/hw/mem/nvdimm.h
+++ b/include/hw/mem/nvdimm.h
@@ -25,6 +25,7 @@
#include "hw/mem/pc-dimm.h"
#include "hw/acpi/bios-linker-loader.h"
+#include "qemu/uuid.h"
#define NVDIMM_DEBUG 0
#define nvdimm_debug(fmt, ...) \
@@ -49,6 +50,7 @@
TYPE_NVDIMM)
#define NVDIMM_LABEL_SIZE_PROP "label-size"
+#define NVDIMM_UUID_PROP "uuid"
#define NVDIMM_UNARMED_PROP "unarmed"
struct NVDIMMDevice {
@@ -83,6 +85,11 @@ struct NVDIMMDevice {
* the guest write persistence.
*/
bool unarmed;
+
+ /*
+ * The PPC64 - spapr requires each nvdimm device have a uuid.
+ */
+ QemuUUID uuid;
};
typedef struct NVDIMMDevice NVDIMMDevice;