mbox series

[v3,0/1] KVM: s390: fix a newly introduced bug

Message ID 20250227130954.440821-1-imbrenda@linux.ibm.com (mailing list archive)
Headers show
Series KVM: s390: fix a newly introduced bug | expand

Message

Claudio Imbrenda Feb. 27, 2025, 1:09 p.m. UTC
Fix race when making a page secure (hold pte lock again)

This should fix the issues I have seen, which I think/hope are also the same
issues that David found.

v2->v3:
* added check for pte_write() in make_hva_secure() [thanks David]

v1->v2:
* major refactoring
* walk the page tables only once
* when importing, manually fault in pages if needed

Claudio Imbrenda (1):
  KVM: s390: pv: fix race when making a page secure

 arch/s390/include/asm/uv.h |   2 +-
 arch/s390/kernel/uv.c      | 107 ++++++++++++++++++++++++++++++++++---
 arch/s390/kvm/gmap.c       |  99 +++-------------------------------
 arch/s390/kvm/kvm-s390.c   |  25 +++++----
 4 files changed, 123 insertions(+), 110 deletions(-)