This patch series adds a some not yet picked selftests to the kvm s390x
selftest suite.

The additional test cases are covering:
* Assert KVM_EXIT_S390_UCONTROL exit on not mapped memory access
* Assert functionality of storage keys in ucontrol VM
* Assert that memory region operations are rejected for ucontrol VMs

Running the test cases requires sys_admin capabilities to start the
ucontrol VM.
This can be achieved by running as root or with a command like:

sudo setpriv --reuid nobody --inh-caps -all,+sys_admin \
  --ambient-caps -all,+sys_admin --bounding-set -all,+sys_admin \
  ./ucontrol_test

---

The patches in this series have been part of the previous patch series.
The test cases added here do depend on the fixture added in the earlier patches.
>From v5 PATCH 7-9 the segment and page table generation has been removed and 
>DAT
has been disabled. Since DAT is not necessary to validate the KVM code.

Previeous series:
https://lore.kernel.org/kvm/20240807154512.316936-1-schlame...@linux.ibm.com/

Also see:
https://lore.kernel.org/kvm/d97f4dec-31c3-45c0-ac33-90e665eb6...@linux.ibm.com/

Christoph Schlameuss (3):
  selftests: kvm: s390: Add uc_map_unmap VM test case
  selftests: kvm: s390: Add uc_skey VM test case
  selftests: kvm: s390: Verify reject memory region operations for
    ucontrol VMs

 .../selftests/kvm/s390x/ucontrol_test.c       | 218 +++++++++++++++++-
 1 file changed, 217 insertions(+), 1 deletion(-)

-- 
2.46.0


Reply via email to