KVM: s390: Stop using page->index and other things
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest15 patches 8 repliesIn review
- v315 patches 26 repliesSuperseded
- v215 patches 19 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 13 patches | 24 replies | Superseded |
Changes in v4 from the cover letter
* fixed some missing locks
* minor style fixes
* remove useless pt_list initialization
* fix comments
* rename gmap_shadow_pgt_lookup to shadow_pgt_lookup sinec it's static
* rename gmap_pgste_{g,s}et_index() to gmap_pgste_{g,s}et_pgt_addr()
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/15 | KVM: Do not restrict the size of KVM-internal memory regionsvirt/ | +9 | 0 replies | |
| 2/15 | KVM: s390: wrapper for KVM_BUGarch/ | +10 | 0 replies | |
| 3/15 | KVM: s390: fake memslot for ucontrol VMsDocumentation/ arch/ arch/ +1 more | +20 | 0 replies | |
| 4/15 | KVM: s390: selftests: fix ucontrol memory region testtools/ | +6 | 1 reply | |
| 5/15 | KVM: s390: move pv gmap functions into kvmarch/ arch/ arch/ +7 more | +291 | 1 reply | |
| 6/15 | KVM: s390: use __kvm_faultin_pfn()arch/ arch/ arch/ | +106 | 0 replies | |
| 7/15 | KVM: s390: get rid of gmap_fault()arch/ arch/ arch/ | +2 | 0 replies | |
| 8/15 | KVM: s390: get rid of gmap_translate()arch/ arch/ arch/ +1 more | +20 | 0 replies | |
| 9/15 | KVM: s390: move some gmap shadowing functions away from mm/gmap.carch/ arch/ arch/ +5 more | +256 | 1 reply | |
| 10/15 | KVM: s390: stop using page->index for non-shadow gmapsarch/ | +54 | 1 reply | |
| 11/15 | KVM: s390: stop using lists to keep track of used dat tablesarch/ arch/ arch/ | +23 | 0 replies | |
| 12/15 | KVM: s390: move gmap_shadow_pgt_lookup() into kvmarch/ arch/ arch/ +1 more | +46 | 1 reply | |
| 13/15 | KVM: s390: remove useless page->index usagearch/ | +0 | 1 reply | |
| 14/15 | KVM: s390: move PGSTE softbitsarch/ | +3 | 1 reply | |
| 15/15 | KVM: s390: remove the last user of page->indexarch/ arch/ arch/ | +39 | 1 reply |
Reviews trailers per patch
All 15 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Schlameuss | Christian Borntraeger | Steffen Eiden | David Hildenbrand | Janosch Frank |
|---|---|---|---|---|---|
| 1/15 | R-b | ||||
| 2/15 | R-b | R-b | R-b | R-b | |
| 3/15 | R-b | R-b | |||
| 4/15 | R-b | ||||
| 5/15 | R-b | R-b | |||
| 6/15 | R-b | A-b | |||
| 7/15 | R-b | A-b | |||
| 8/15 | R-b | R-b | |||
| 9/15 | R-b | R-b | |||
| 10/15 | R-b | R-b | |||
| 11/15 | R-b | A-b | R-b | ||
| 12/15 | R-b | R-b | R-b | ||
| 13/15 | R-b | R-b | |||
| 14/15 | R-b | R-b | |||
| 15/15 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCH v4 00/15] KVM: s390: Stop using page->index and other things
This patchseries starts moving some of the gmap logic into KVM itself, going towards the final goal of completely removing gmap from the non-kvm memory management code. Aside from just moving some code from mm/gmap into kvm, this series also starts using __kvm_faultin_pfn() to fault-in pages as needed.
But more importantly, this series removes almost all uses of page->index (and all uses of page->lru) from the s390 KVM code. The only remaining use is for the vsie pages, but that has already been taken care of by David in another series.
Unfortunately the mix of hastiness and holidays means that this series is a little bit all over the place, and not as complete as I would have liked to.
I'm posting it now so to try to speed up the removal of page->index, hopefully I will be able to post another short series before the upcoming merge window closes.
v1->v2:
* moved some code around between patches to improve readability and shuffle the order of some patches
* rebase on Sean's patchseries
* add Sean's patch to remove size limitations for internal memslots
* use Sean's new API for internal memslots to place one huge internal memslot instead of many 4T ones for UCONTROL guests
* create new kvm/gmap-vsie.c file for VSIE code, instead of dumping everything in the existing files, which are already too large
* improve comments and patch descriptions
* minor style and cosmetic fixes
v2->v3
* moved patch 5 back to its place
* moved uv_wiggle_folio() to mm/gmap.c and renamed it to kvm_s390_wiggle_split_folio()
* fixed some typos
* added some lockdep asserts
* minor style fixes
* added some comments
* fixed documentation
v3->v4
* fixed some missing locks
* minor style fixes
* remove useless pt_list initialization
* fix comments
* rename gmap_shadow_pgt_lookup to shadow_pgt_lookup sinec it's static
* rename gmap_pgste_{g,s}et_index() to gmap_pgste_{g,s}et_pgt_addr()
Claudio Imbrenda (14):
KVM: s390: wrapper for KVM_BUG
KVM: s390: fake memslot for ucontrol VMs
KVM: s390: selftests: fix ucontrol memory region test
KVM: s390: move pv gmap functions into kvm
KVM: s390: use __kvm_faultin_pfn()
KVM: s390: get rid of gmap_fault()
KVM: s390: get rid of gmap_translate()
KVM: s390: move some gmap shadowing functions away from mm/gmap.c
KVM: s390: stop using page->index for non-shadow gmaps
KVM: s390: stop using lists to keep track of used dat tables
KVM: s390: move gmap_shadow_pgt_lookup() into kvm
KVM: s390: remove useless page->index usage
KVM: s390: move PGSTE softbits
KVM: s390: remove the last user of page->index
Sean Christopherson (1):
KVM: Do not restrict the size of KVM-internal memory regions
Documentation/virt/kvm/api.rst | 2 +- arch/s390/include/asm/gmap.h | 20 +- arch/s390/include/asm/kvm_host.h | 2 + arch/s390/include/asm/pgtable.h | 21 +- arch/s390/include/asm/uv.h | 6 +- arch/s390/kernel/uv.c | 292 +------- arch/s390/kvm/Makefile | 2 +- arch/s390/kvm/gaccess.c | 44 +- arch/s390/kvm/gmap-vsie.c | 139 ++++ arch/s390/kvm/gmap.c | 209 ++++++ arch/s390/kvm/gmap.h | 39 + arch/s390/kvm/intercept.c | 5 +- arch/s390/kvm/interrupt.c | 19 +- arch/s390/kvm/kvm-s390.c | 224 +++++- arch/s390/kvm/kvm-s390.h | 19 + arch/s390/kvm/pv.c | 1 + arch/s390/kvm/vsie.c | 2 + arch/s390/mm/gmap.c | 681 ++++-------------- arch/s390/mm/pgalloc.c | 2 - .../selftests/kvm/s390x/ucontrol_test.c | 8 +- virt/kvm/kvm_main.c | 10 +- 21 files changed, 875 insertions(+), 872 deletions(-) create mode 100644 arch/s390/kvm/gmap-vsie.c create mode 100644 arch/s390/kvm/gmap.c create mode 100644 arch/s390/kvm/gmap.h
Signature · 1 line
2.48.1