mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5 0/1] KVM: s390: fix a newly introduced bug
@ 2025-03-12 18:49 Claudio Imbrenda
  2025-03-12 18:49 ` [PATCH v5 1/1] KVM: s390: pv: fix race when making a page secure Claudio Imbrenda
  0 siblings, 1 reply; 2+ messages in thread
From: Claudio Imbrenda @ 2025-03-12 18:49 UTC (permalink / raw)
  To: kvm
  Cc: linux-kernel, linux-s390, frankja, borntraeger, david, nrb,
	seiden, nsg, schlameuss, hca

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.

v4->v5:
* fixed kerneldoc for s390_wiggle_split_folio()
* remove get_locked_valid_pte() and replace it with folio_walk_start()
  [thanks David]

v3->v4:
* move and rename s390_wiggle_split_folio() to fix a compile issue when
  KVM is not selected
* removed obsolete reference to __() from comments

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/gmap.h |   1 -
 arch/s390/include/asm/uv.h   |   2 +-
 arch/s390/kernel/uv.c        | 136 +++++++++++++++++++++++++++++++++--
 arch/s390/kvm/gmap.c         | 103 ++------------------------
 arch/s390/kvm/kvm-s390.c     |  25 ++++---
 arch/s390/mm/gmap.c          |  28 --------
 6 files changed, 151 insertions(+), 144 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-03-12 18:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-12 18:49 [PATCH v5 0/1] KVM: s390: fix a newly introduced bug Claudio Imbrenda
2025-03-12 18:49 ` [PATCH v5 1/1] KVM: s390: pv: fix race when making a page secure Claudio Imbrenda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®