These patches cleans up handling of SDR1 (master page table pointer register for Power) and related cases with an external (i.e. managed by qemu or KVM, rather than the guest) hash page table (HPT).
I wouldn't push 1/3 or 2/3 on their own after the soft freeze, except that they simplify 3/3, which fixes a real regression. Changes since v1: * Split out SREGS getters/putters instead of creating a special one just for SDR1 David Gibson (3): target-ppc: Split out SREGS get/put functions target-ppc: Add helpers for updating a CPU's SDR1 and external HPT target-ppc: Eliminate kvmppc_kern_htab global hw/ppc/spapr.c | 16 +- hw/ppc/spapr_hcall.c | 10 +- target-ppc/kvm.c | 421 ++++++++++++++++++++++++++---------------------- target-ppc/kvm_ppc.h | 6 + target-ppc/mmu-hash64.c | 81 +++++++--- target-ppc/mmu-hash64.h | 11 +- target-ppc/mmu_helper.c | 13 +- 7 files changed, 315 insertions(+), 243 deletions(-) -- 2.5.0