From: David Gibson <david@gibson.dropbear.id.au>
To: qemu-ppc@nongnu.org, aik@ozlabs.ru, sjitindarsingh@gmail.com,
aneesh.kumar@linux.vnet.ibm.com
Cc: qemu-devel@nongnu.org, thuth@redhat.com, lvivier@redhat.com,
agraf@suse.de, mdroth@linux.vnet.ibm.com,
David Gibson <david@gibson.dropbear.id.au>
Subject: [Qemu-devel] [PATCHv2 0/9] Cleanups to handling of hash MMU
Date: Mon, 27 Feb 2017 16:12:30 +1100 [thread overview]
Message-ID: <20170227051239.2680-1-david@gibson.dropbear.id.au> (raw)
This series has an assortment of cleanups to the handling of the hash
based MMU for 64-bit ppc machines. In particular it better handles
the case of "external" hash table - this is used on the pseries
machine type, which being a paravirtualized platform has the hashed
page table - along with other hypervisor resources - outside the
direct reach of the guest OS. This series integrates the handling of
the external HPT with the externalized handling of hypercalls via the
"virtual hypervisor" mechanism.
These cleanups are expected to make integrating the new MMU model for
POWER9 easier; in particular dealing with both the new POWER9 radix
MMU and also the POWER9 legacy hash compatibility mode.
This series is based on my current ppc-for-2.9 branch.
Changes in v2:
* Assorted cleanups based on review comments
* Realized that the existing KVM HPT access code was broken,
prepended a fix for that
* Folded in a patch from Suraj with further cleanup of SDR1
management
* Added an extra patch with yet more cleanup, and a small fix to
SDR1 masking
David Gibson (8):
target/ppc: Fix KVM-HV HPTE accessors
pseries: Minor cleanups to HPT management hypercalls
target/ppc: Merge cpu_ppc_set_vhyp() with cpu_ppc_set_papr()
target/ppc: SDR1 is a hypervisor resource
target/ppc: Cleanup HPTE accessors for 64-bit hash MMU
target/ppc: Eliminate htab_base and htab_mask variables
target/ppc: Manage external HPT via virtual hypervisor
target/ppc: Correct SDR1 masking
Suraj Jitindar Singh (1):
target/ppc: Remove the function ppc_hash64_set_sdr1()
hw/ppc/spapr.c | 60 ++++++++++++++
hw/ppc/spapr_cpu_core.c | 20 ++++-
hw/ppc/spapr_hcall.c | 89 ++++++++++----------
target/ppc/cpu.h | 27 +++----
target/ppc/kvm.c | 128 ++++++++++++++---------------
target/ppc/kvm_ppc.h | 20 ++---
target/ppc/machine.c | 5 +-
target/ppc/misc_helper.c | 8 +-
target/ppc/mmu-hash32.c | 14 ++--
target/ppc/mmu-hash32.h | 34 ++++----
target/ppc/mmu-hash64.c | 193 ++++++++++++++++----------------------------
target/ppc/mmu-hash64.h | 65 ++++++++-------
target/ppc/mmu_helper.c | 51 +++++++-----
target/ppc/translate_init.c | 30 ++++---
14 files changed, 379 insertions(+), 365 deletions(-)
--
2.9.3
next reply other threads:[~2017-02-27 5:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-27 5:12 David Gibson [this message]
2017-02-27 5:12 ` [Qemu-devel] [PATCHv2 1/9] target/ppc: Fix KVM-HV HPTE accessors David Gibson
2017-02-27 5:12 ` [Qemu-devel] [PATCHv2 2/9] pseries: Minor cleanups to HPT management hypercalls David Gibson
2017-02-27 5:12 ` [Qemu-devel] [PATCHv2 3/9] target/ppc: Merge cpu_ppc_set_vhyp() with cpu_ppc_set_papr() David Gibson
2017-02-27 5:12 ` [Qemu-devel] [PATCHv2 4/9] target/ppc: SDR1 is a hypervisor resource David Gibson
2017-02-27 5:12 ` [Qemu-devel] [PATCHv2 5/9] target/ppc: Cleanup HPTE accessors for 64-bit hash MMU David Gibson
2017-02-27 5:12 ` [Qemu-devel] [PATCHv2 6/9] target/ppc: Eliminate htab_base and htab_mask variables David Gibson
2017-02-27 5:12 ` [Qemu-devel] [PATCHv2 7/9] target/ppc: Manage external HPT via virtual hypervisor David Gibson
2017-02-27 5:12 ` [Qemu-devel] [PATCHv2 8/9] target/ppc: Remove the function ppc_hash64_set_sdr1() David Gibson
2017-02-27 5:12 ` [Qemu-devel] [PATCHv2 9/9] target/ppc: Correct SDR1 masking David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170227051239.2680-1-david@gibson.dropbear.id.au \
--to=david@gibson.dropbear.id.au \
--cc=agraf@suse.de \
--cc=aik@ozlabs.ru \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=lvivier@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=sjitindarsingh@gmail.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).