Skip to content

RFC KVM: s390: Huge page splitting and shadowing

Janosch Frank linux-s390 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest11 of 14 patches 1 replyIn review

11 of 14 patches are in this archive. The cover letter announces 14.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
3/14s390/mm: Take locking out of gmap_protect_ptearch/s390/mm/gmap.c+14 -160 replies
4/14s390/mm: split huge pages in GMAP when protectingarch/s390/include/asm/gmap.h arch/s390/include/asm/pgtable.h arch/s390/mm/gmap.c +1 more+247 -500 replies
5/14s390/mm: Split huge pages when migratingarch/s390/mm/gmap.c+28 -60 replies
6/14s390/mm: Provide vmaddr to pmd notificationarch/s390/mm/gmap.c+26 -250 replies
7/14s390/mm: Add gmap_idte_globalarch/s390/mm/gmap.c+14 -140 replies
8/14s390/mm: Make gmap_read_table EDAT1 compatiblearch/s390/mm/gmap.c+26 -170 replies
9/14s390/mm: Make gmap_protect_rmap EDAT1 compatiblearch/s390/mm/gmap.c+67 -200 replies
10/14s390/mm: Add simple ptep shadow functionarch/s390/include/asm/pgtable.h arch/s390/mm/pgtable.c+17 -80 replies
11/14s390/mm: Add gmap shadowing for large pmdsarch/s390/include/asm/gmap.h arch/s390/kvm/gaccess.c arch/s390/mm/gmap.c+316 -720 replies
12/14s390/mm: Add gmap lock classesarch/s390/include/asm/gmap.h arch/s390/mm/gmap.c+27 -190 replies
13/14s390/mm: Pull pmd invalid check in gmap_pmd_op_walkarch/s390/mm/gmap.c+7 -101 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 00/14] KVM: s390: Huge page splitting and shadowing

Let's continue with the hpage updates and introduce splitting as well as VSIE support. A lot of problems have been fixed since I introduced these patches the last time. Swapping and loaded migration tests have been successful.

The locking is now done via the userspace mm pmd lock instead of the guest_table_lock, which fixed a lot of potential locking problems between pgtable.c and gmap.c functions.

VSIE handling has been slightly redesigned to handle all combinations instead of only edge cases.

Split pages are being modified by common pgtable.c functions as much as possible and got pgste locking before modifications.

There's still a lot of cleanup and documentation to do, but let's put it out there.

Branch:
git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git hlp_vsie
https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git/log/?h=hlp_vsie

Janosch Frank (14):
s390/mm: Code cleanups
s390/mm: Improve locking for huge page backings s390/mm: Take locking out of gmap_protect_pte s390/mm: split huge pages in GMAP when protecting s390/mm: Split huge pages when migrating s390/mm: Provide vmaddr to pmd notification s390/mm: Add gmap_idte_global
s390/mm: Make gmap_read_table EDAT1 compatible s390/mm: Make gmap_protect_rmap EDAT1 compatible s390/mm: Add simple ptep shadow function s390/mm: Add gmap shadowing for large pmds s390/mm: Add gmap lock classes
s390/mm: Pull pmd invalid check in gmap_pmd_op_walk
KVM: s390: Allow the VSIE to be used with huge pages

 Documentation/virtual/kvm/api.txt |   7 +-
 arch/s390/include/asm/gmap.h      |  31 +-
 arch/s390/include/asm/pgtable.h   |   5 +
 arch/s390/kvm/gaccess.c           |  52 ++-
 arch/s390/kvm/kvm-s390.c          |  14 +-
 arch/s390/mm/gmap.c               | 905 ++++++++++++++++++++++++++++----------
 arch/s390/mm/pgtable.c            |  61 ++-
 7 files changed, 806 insertions(+), 269 deletions(-)
Signature · 1 line
2.14.3