Skip to content

KVM: s390: some vSIE and UCONTROL fixes

Claudio Imbrenda kvm linux-s390 lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 1 replyIn review
  2. v25 patches 9 repliesSuperseded
  3. v13 patches 1 replySuperseded

Changes in v3 from the cover letter

* Add comments to pte_needs_unshadow() and crste_needs_unshadow() explaining how they work
* Improve some patch descriptions

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5KVM: s390: vsie: Fix memory leak when unshadowingarch/s390/kvm/gmap.c+3 -10 replies
2/5KVM: s390: Fix leaking kvm_s390_mmu_cache in case of errorsarch/s390/kvm/gmap.c+3 -40 replies
3/5KVM: s390: vsie: Fix unshadowing logicarch/s390/kvm/dat.c arch/s390/kvm/dat.h arch/s390/kvm/gaccess.c +2 more+63 -51 reply
4/5KVM: s390: vsie: Fix redundant rmap entriesarch/s390/kvm/gmap.c+3 -10 replies
5/5KVM: s390: Properly reset zero bit in PGSTEarch/s390/kvm/gmap.h+1 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchChristoph SchlameussChristian BorntraegerSteffen Eiden
1/5R-b R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-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 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] KVM: s390: some vSIE and UCONTROL fixes

Fix some memory issues and some hangs in vSIE.

This is still a fallout from the gmap rewrite.

v2->v3:
* Add comments to pte_needs_unshadow() and crste_needs_unshadow() explaining how they work
* Improve some patch descriptions

v1->v2:
* Fix potential leak of struct kvm_s390_mmu_cache in gmap_set_limit()
* Refactor and improve the checks to determine whether an unshadowing is needed
* Set and propagate vsie_gmem properly
* Properly mask the address passed to gmap_insert_rmap() to prevent creating multiple redundant rmaps when shadowing
* Clear the pgste.zero flag when needed, to prevent pages from getting accidentally discarded

Claudio Imbrenda (5):
KVM: s390: vsie: Fix memory leak when unshadowing
KVM: s390: Fix leaking kvm_s390_mmu_cache in case of errors
KVM: s390: vsie: Fix unshadowing logic
KVM: s390: vsie: Fix redundant rmap entries
KVM: s390: Properly reset zero bit in PGSTE

 arch/s390/kvm/dat.c     |  1 +
 arch/s390/kvm/dat.h     |  3 +-
 arch/s390/kvm/gaccess.c |  1 +
 arch/s390/kvm/gmap.c    | 18 +++++++-----
 arch/s390/kvm/gmap.h    | 61 +++++++++++++++++++++++++++++++++++++++--
 5 files changed, 73 insertions(+), 11 deletions(-)
Signature · 1 line
2.54.0