Skip to contentSkip to conversation

assorted radix fixes and improvemets for page fault and invalidation

PATCH New Nicholas Piggin 1 participant 1 message May 17, 2018

lore
Share & tools
lore
#0 lore raw

v3 cover assorted radix fixes and improvemets for page fault and invalidation

Here's various patches for radix, a few small bugfixes, tracepoint enablement or partition scope tlbie, and some page fault optimisation.

This was tested with the patch to qemu that enables THP for partition scope page tables and things seem to work as expected.

Changes since v2:
- Rebased on to powerpc topic/ppc-kvm branch which contains "[PATCH v2 5/9] powerpc/mm/radix: implement LPID based TLB flushes to be used by KVM" from this series, and also a change to the kvm pmd allocator

- Updated some changelogs and comments a little bit.

- Re-tested with QEMU that does proper 2MB alignment, verified we're still seeing events for partition scope TLB and PWC flushing.

Nicholas Piggin (8):
KVM: PPC: Book3S HV: radix use correct tlbie sequence in
kvmppc_radix_tlbie_page
KVM: PPC: Book3S HV: radix clear pte when unmapping
KVM: PPC: Book3S HV: use a helper to unmap ptes in the radix fault
path
KVM: PPC: Book3S HV: recursively unmap all page table entries when
unmapping
KVM: PPC: Book3S HV: radix use the Linux translation flush functions
for partition scope
KVM: PPC: Book3S HV: radix handle process scoped LPID flush in C, with
relocation on
KVM: PPC: Book3S HV: radix refine IO region partition scope attributes
KVM: PPC: Book3S HV: radix do not clear partition pte when RC or write
bits do not match

 arch/powerpc/kvm/book3s_64_mmu_radix.c  | 350 +++++++++++++++---------
 arch/powerpc/kvm/book3s_hv.c            |  26 ++
 arch/powerpc/kvm/book3s_hv_rmhandlers.S |  13 +-
 3 files changed, 254 insertions(+), 135 deletions(-)
Signature · 1 line
2.17.0