Received: from eggs.gnu.org ([2001:4830:134:3::10]:47908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aL2bZ-0005w3-St for qemu-devel@nongnu.org; Mon, 18 Jan 2016 00:43:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aL2bZ-00023A-29 for qemu-devel@nongnu.org; Mon, 18 Jan 2016 00:43:53 -0500 From: David Gibson Date: Mon, 18 Jan 2016 16:44:41 +1100 Message-Id: <1453095881-16704-4-git-send-email-david@gibson.dropbear.id.au> In-Reply-To: <1453095881-16704-1-git-send-email-david@gibson.dropbear.id.au> References: <1453095881-16704-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [RFC 3/3] pseries: Advertise HPT resize capability List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: benh@kernel.crashing.org, paulus@samba.org Cc: lvivier@redhat.com, thuth@redhat.com, agraf@suse.de, qemu-devel@nongnu.org, qemu-ppc@nongnu.org, bharata@linux.vnet.ibm.com, David Gibson This adds a new string to the hypertas property in the device tree, advertising to the guest the availability of the HPT resizing hypercalls. This is a tentative suggested value, and would need to be standardized by PAPR before being merged. Signed-off-by: David Gibson --- hw/ppc/spapr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index e26baca..1147382 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -334,6 +334,9 @@ static void *spapr_create_fdt_skel(hwaddr initrd_base, add_str(hypertas, "hcall-splpar"); add_str(hypertas, "hcall-bulk"); add_str(hypertas, "hcall-set-mode"); + if (!kvm_enabled()) { /* Not implemented in KVM yet */ + add_str(hypertas, "hcall-hpt-resize"); + } add_str(qemu_hypertas, "hcall-memop1"); fdt = g_malloc0(FDT_MAX_SIZE); -- 2.5.0