From: Sam Bobroff <sam.bobroff@au1.ibm.com>
To: qemu-devel@nongnu.org, alexey@ozlabs.ru
Cc: qemu-ppc@nongnu.org
Subject: [Qemu-devel] [PATCH 1/4] spapr: Add /ibm,partition-name
Date: Fri, 3 Jul 2015 13:42:17 +1000 [thread overview]
Message-ID: <7cc37b8e7fca99502178abf9f1d1fe1ec46d955b.1435894936.git.sam.bobroff@au1.ibm.com> (raw)
In-Reply-To: <cover.1435894936.git.sam.bobroff@au1.ibm.com>
In-Reply-To: <cover.1435894936.git.sam.bobroff@au1.ibm.com>
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 <sam.bobroff@au1.ibm.com>
---
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
next prev parent reply other threads:[~2015-07-03 3:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 3:42 [Qemu-devel] [PATCH 0/4] spapr: Small PAPR compliance fixes Sam Bobroff
2015-07-03 3:42 ` Sam Bobroff [this message]
2015-07-03 3:42 ` [Qemu-devel] [PATCH 2/4] spapr: Add /rtas/ibm,change-msix-capable Sam Bobroff
2015-07-03 3:42 ` [Qemu-devel] [PATCH 3/4] spapr: Make ibm, change-msi respect 3 return values Sam Bobroff
2015-07-03 3:42 ` [Qemu-devel] [PATCH 4/4] spapr: SPLPAR Characteristics Sam Bobroff
2015-07-03 6:10 ` Bharata B Rao
2015-07-07 7:26 ` [Qemu-devel] [PATCH 0/4] spapr: Small PAPR compliance fixes David Gibson
2015-07-20 3:34 ` Sam Bobroff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7cc37b8e7fca99502178abf9f1d1fe1ec46d955b.1435894936.git.sam.bobroff@au1.ibm.com \
--to=sam.bobroff@au1.ibm.com \
--cc=alexey@ozlabs.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).