mbox series

[0/2] Dirtying, failing memop: don't indicate suppression

Message ID 20220401170247.1287354-1-scgl@linux.ibm.com (mailing list archive)
Headers show
Series Dirtying, failing memop: don't indicate suppression | expand

Message

Janis Schoetterl-Glausch April 1, 2022, 5:02 p.m. UTC
If a memop fails due to key checked protection, after already having
written to the guest, don't indicate suppression to the guest, as that
would imply that memory wasn't modified.

This could be considered a fix to the code introducing storage key
support, however this is a bug in KVM only if we emulate an
instructions writing to an operand spanning multiple pages, which I
don't believe we do.

Janis Schoetterl-Glausch (2):
  KVM: s390: Don't indicate suppression on dirtying, failing memop
  KVM: s390: selftest: Test suppression indication on key prot exception

 arch/s390/kvm/gaccess.c                   | 47 ++++++++++++++---------
 tools/testing/selftests/kvm/s390x/memop.c | 43 ++++++++++++++++++++-
 2 files changed, 70 insertions(+), 20 deletions(-)


base-commit: 1ebdbeb03efe89f01f15df038a589077df3d21f5