public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: s390: Fix lpsw/e breaking event handling
@ 2026-03-23 15:35 Janosch Frank
  2026-03-23 15:35 ` [PATCH 1/2] " Janosch Frank
  2026-03-23 15:35 ` [PATCH 2/2] KVM: s390: selftests: Add load psw bear test Janosch Frank
  0 siblings, 2 replies; 9+ messages in thread
From: Janosch Frank @ 2026-03-23 15:35 UTC (permalink / raw)
  To: kvm; +Cc: linux-s390, imbrenda, borntraeger

LPSW and LPSWE need to set the gbea on completion but currently don't.
Time to fix this up. LPSWEY was designed to not set the bear.

This is only ever problematic when a machine check is pending and the
guest hasn't opened the PSW machine check mask. In all other cases SIE
handles the BEAR. So impact is very low.

---
v2:
 - BEAR needs to be current psw address - ilen since code 04 is
   suppressing
 - Added simple test
---
Janosch Frank (2):
  KVM: s390: Fix lpsw/e breaking event handling
  KVM: s390: selftests: Add load psw bear test

 arch/s390/kvm/priv.c                     |   8 +-
 tools/testing/selftests/kvm/Makefile.kvm |   1 +
 tools/testing/selftests/kvm/s390/bear.c  | 184 +++++++++++++++++++++++
 3 files changed, 191 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/s390/bear.c

-- 
2.51.0


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

end of thread, other threads:[~2026-03-25 13:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-23 15:35 [PATCH 0/2] KVM: s390: Fix lpsw/e breaking event handling Janosch Frank
2026-03-23 15:35 ` [PATCH 1/2] " Janosch Frank
2026-03-25  7:51   ` Christian Borntraeger
2026-03-25 12:00   ` Claudio Imbrenda
2026-03-23 15:35 ` [PATCH 2/2] KVM: s390: selftests: Add load psw bear test Janosch Frank
2026-03-25  8:49   ` Christian Borntraeger
2026-03-25 10:29   ` Christian Borntraeger
2026-03-25 13:15     ` Janosch Frank
2026-03-25 13:19   ` [PATCH v2] " Janosch Frank

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