[PATCH v2 0/5] KVM: s390: some vSIE and UCONTROL fixes

Claudio Imbrenda posted 5 patches 1 month ago
There is a newer version of this series
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    | 23 ++++++++++++++++++++---
5 files changed, 35 insertions(+), 11 deletions(-)
[PATCH v2 0/5] KVM: s390: some vSIE and UCONTROL fixes
Posted by Claudio Imbrenda 1 month ago
Fix some memory issues and some hangs in vSIE.

This is still a fallout from the gmap rewrite.

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    | 23 ++++++++++++++++++++---
 5 files changed, 35 insertions(+), 11 deletions(-)

-- 
2.54.0