diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2015-11-09 17:47:17 +1100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-01-11 15:29:04 +1100 |
commit | 3dc0a66d26bfc3820ab46aaf245cabf26fcf1eb4 (patch) | |
tree | ae9542c075a1d8613f94210305483546b7ce4dee | |
parent | 7d94a30b549281d4d780fb9a5cca3dae378329d4 (diff) | |
download | qemu-3dc0a66d26bfc3820ab46aaf245cabf26fcf1eb4.zip qemu-3dc0a66d26bfc3820ab46aaf245cabf26fcf1eb4.tar.gz qemu-3dc0a66d26bfc3820ab46aaf245cabf26fcf1eb4.tar.bz2 |
spapr: Add /system-id
Section B.6.2.1 Root Node Properties of PAPR specification defines
a set of properties which shall be present in the device tree root,
one of these properties is "system-id" which "should be unique across
all systems and all manufacturers". Since UUID is meant to be unique,
it makes sense to use it as "system-id".
This adds "system-id" property to the device tree root when not empty.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | hw/ppc/spapr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 6bfb908..29a16b7 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -375,6 +375,9 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base, qemu_uuid[14], qemu_uuid[15]); _FDT((fdt_property_string(fdt, "vm,uuid", buf))); + if (qemu_uuid_set) { + _FDT((fdt_property_string(fdt, "system-id", buf))); + } g_free(buf); if (qemu_get_vm_name()) { |