[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [RFC 3/3] pseries: Advertise HPT resize capability
From: |
David Gibson |
Subject: |
[Qemu-ppc] [RFC 3/3] pseries: Advertise HPT resize capability |
Date: |
Mon, 18 Jan 2016 16:44:41 +1100 |
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 <address@hidden>
---
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
- [Qemu-ppc] [RFC 0/3] Draft implementation of HPT resizing (qemu side), David Gibson, 2016/01/18
- [Qemu-ppc] [RFC 3/3] pseries: Advertise HPT resize capability,
David Gibson <=
- [Qemu-ppc] [RFC 1/3] pseries: Stub hypercalls for HPT resizing, David Gibson, 2016/01/18
- [Qemu-ppc] [RFC 2/3] pseries: Implement HPT resizing, David Gibson, 2016/01/18
- Re: [Qemu-ppc] [RFC 0/3] Draft implementation of HPT resizing (qemu side), David Gibson, 2016/01/18
- Re: [Qemu-ppc] [RFC 0/3] Draft implementation of HPT resizing (qemu side), Bharata B Rao, 2016/01/19
- Re: [Qemu-ppc] [RFC 0/3] Draft implementation of HPT resizing (qemu side), Paul Mackerras, 2016/01/29