[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 1/4] spapr: Add /ibm,partition-name
From: |
Sam Bobroff |
Subject: |
[Qemu-ppc] [PATCH 1/4] spapr: Add /ibm,partition-name |
Date: |
Fri, 3 Jul 2015 13:42:17 +1000 |
QEMU has a notion of the guest name, so if it's present we might as
well put that into the device tree as /ibm,partition-name.
This is specificed by PAPR.
Signed-off-by: Sam Bobroff <address@hidden>
---
hw/ppc/spapr.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index 0487f52..603f517 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -384,6 +384,11 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base,
_FDT((fdt_property_string(fdt, "vm,uuid", buf)));
g_free(buf);
+ if (qemu_get_vm_name()) {
+ _FDT((fdt_property_string(fdt, "ibm,partition-name",
+ qemu_get_vm_name())));
+ }
+
_FDT((fdt_property_cell(fdt, "#address-cells", 0x2)));
_FDT((fdt_property_cell(fdt, "#size-cells", 0x2)));
--
2.1.4
- [Qemu-ppc] [PATCH 0/4] spapr: Small PAPR compliance fixes, Sam Bobroff, 2015/07/02
- [Qemu-ppc] [PATCH 4/4] spapr: SPLPAR Characteristics, Sam Bobroff, 2015/07/02
- [Qemu-ppc] [PATCH 3/4] spapr: Make ibm, change-msi respect 3 return values, Sam Bobroff, 2015/07/02
- [Qemu-ppc] [PATCH 2/4] spapr: Add /rtas/ibm,change-msix-capable, Sam Bobroff, 2015/07/02
- [Qemu-ppc] [PATCH 1/4] spapr: Add /ibm,partition-name,
Sam Bobroff <=
- Re: [Qemu-ppc] [Qemu-devel] [PATCH 0/4] spapr: Small PAPR compliance fixes, David Gibson, 2015/07/07