OSDN Git Service

pseries: Stubs for HPT resizing
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 12 May 2017 05:46:11 +0000 (15:46 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 17 Jul 2017 05:07:05 +0000 (15:07 +1000)
commit30f4b05bd090564181554d0890605eb2c143e4ea
treeac2f6656ac80dec20a9ea7ddd86a410690222c34
parent2ee77040f53b7720579d897544604e45b3d41963
pseries: Stubs for HPT resizing

This introduces stub implementations of the H_RESIZE_HPT_PREPARE and
H_RESIZE_HPT_COMMIT hypercalls which we hope to add in a PAPR
extension to allow run time resizing of a guest's hash page table.  It
also adds a new machine property for controlling whether this new
facility is available.

For now we only allow resizing with TCG, allowing it with KVM will require
kernel changes as well.

Finally, it 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 <david@gibson.dropbear.id.au>
Reviewed-by: Suraj Jitindar Singh <sjitindarsingh@gmail.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
hw/ppc/spapr.c
hw/ppc/spapr_hcall.c
hw/ppc/trace-events
include/hw/ppc/spapr.h
target/ppc/kvm.c
target/ppc/kvm_ppc.h