All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [for-2.9 0/5] Hash Page Table resizing for TCG pseries guests
@ 2016-12-09  2:23 David Gibson
  2016-12-09  2:23 ` [Qemu-devel] [for-2.9 1/5] pseries: Add pseries-2.9 machine type David Gibson
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: David Gibson @ 2016-12-09  2:23 UTC (permalink / raw)
  To: paulus, sjitindarsingh
  Cc: agraf, mdroth, qemu-ppc, qemu-devel, thuth, lvivier, David Gibson

This series implements the host side of the PAPR ACR to allow runtime
resizing of the Hashed Page Table (HPT) for pseries guests.
Exercising this feature requires a guest OS which is also aware of it.
Patches to implement the guest side in Linux have just been submitted
upstream:

https://lists.ozlabs.org/pipermail/linuxppc-dev/2016-December/152164.html

Availability of the feature is controlled by a new 'resize-hpt'
machine option: it can be set to "disabled", "enabled" or "required".
The last means that qemu will refuse to boot a guest which is not
aware of the HPT resizing feature (it will instead quit during feature
negotiation).  This is potentially useful because guests which don't
support resizing will need an HPT sized for their maximum possible
RAM, which can be very wasteful of host resources.

So far this is only tested for TCG guests.  PR KVM guests should work
in theory, but I haven't been able to test yet due to (probably
unrelated) problems booting a suitable guest kernel.  HV KVM guests
will require substantial extra work in the host kernel; development is
in progress.

David Gibson (5):
  pseries: Add pseries-2.9 machine type
  pseries: Stubs for HPT resizing
  pseries: Implement HPT resizing
  pseries: Enable HPT resizing for 2.9
  pseries: Use smaller default hash page tables when guest can resize

 hw/ppc/spapr.c              | 117 +++++++++++--
 hw/ppc/spapr_hcall.c        | 408 ++++++++++++++++++++++++++++++++++++++++++++
 hw/ppc/trace-events         |   2 +
 include/hw/compat.h         |   3 +
 include/hw/ppc/spapr.h      |  19 +++
 include/hw/ppc/spapr_ovec.h |   1 +
 target-ppc/kvm.c            |  26 +++
 target-ppc/kvm_ppc.h        |   5 +
 target-ppc/mmu-hash64.h     |   4 +
 9 files changed, 575 insertions(+), 10 deletions(-)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-12-12  3:03 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-09  2:23 [Qemu-devel] [for-2.9 0/5] Hash Page Table resizing for TCG pseries guests David Gibson
2016-12-09  2:23 ` [Qemu-devel] [for-2.9 1/5] pseries: Add pseries-2.9 machine type David Gibson
2016-12-09  7:59   ` Thomas Huth
2016-12-09 13:25   ` Laurent Vivier
2016-12-09  2:23 ` [Qemu-devel] [for-2.9 2/5] pseries: Stubs for HPT resizing David Gibson
2016-12-09  8:18   ` Thomas Huth
2016-12-09  9:09     ` David Gibson
2016-12-09  9:18       ` Thomas Huth
2016-12-12  1:06         ` David Gibson
2016-12-09 17:08   ` Michael Roth
2016-12-10  9:10     ` David Gibson
2016-12-12  0:40     ` David Gibson
2016-12-09  2:23 ` [Qemu-devel] [for-2.9 3/5] pseries: Implement " David Gibson
2016-12-09  8:36   ` Thomas Huth
2016-12-09  9:19     ` David Gibson
2016-12-09  2:23 ` [Qemu-devel] [for-2.9 4/5] pseries: Enable HPT resizing for 2.9 David Gibson
2016-12-09 13:26   ` Laurent Vivier
2016-12-09  2:23 ` [Qemu-devel] [for-2.9 5/5] pseries: Use smaller default hash page tables when guest can resize David Gibson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.