[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH qemu] spapr: Add /system-id
From: |
Alexey Kardashevskiy |
Subject: |
[Qemu-devel] [PATCH qemu] spapr: Add /system-id |
Date: |
Mon, 9 Nov 2015 17:47:17 +1100 |
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 <address@hidden>
---
This might be expected by AIX so here is the patch.
I am really not sure if it makes sense to initialize property when
UUID is all zeroes as the requirement is "unique" and zero-uuid is not.
---
hw/ppc/spapr.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index de77528..e8b407d 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -374,6 +374,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()) {
--
2.5.0.rc3
- [Qemu-devel] [PATCH qemu] spapr: Add /system-id,
Alexey Kardashevskiy <=
- Re: [Qemu-devel] [PATCH qemu] spapr: Add /system-id, David Gibson, 2015/11/09
- Re: [Qemu-devel] [PATCH qemu] spapr: Add /system-id, Alexey Kardashevskiy, 2015/11/18
- Re: [Qemu-devel] [PATCH qemu] spapr: Add /system-id, David Gibson, 2015/11/18
- Re: [Qemu-devel] [Qemu-ppc] [PATCH qemu] spapr: Add /system-id, Alexander Graf, 2015/11/25
- Re: [Qemu-devel] [Qemu-ppc] [PATCH qemu] spapr: Add /system-id, David Gibson, 2015/11/25
- Re: [Qemu-devel] [Qemu-ppc] [PATCH qemu] spapr: Add /system-id, Alexey Kardashevskiy, 2015/11/25
- Re: [Qemu-devel] [Qemu-ppc] [PATCH qemu] spapr: Add /system-id, Greg Kurz, 2015/11/26
- Re: [Qemu-devel] [Qemu-ppc] [PATCH qemu] spapr: Add /system-id, David Gibson, 2015/11/26