mbox series

[v7,0/5] selftests: kvm: s390: Add ucontrol memory selftests

Message ID 20241107141024.238916-1-schlameuss@linux.ibm.com
Headers show
Series selftests: kvm: s390: Add ucontrol memory selftests | expand

Message

Christoph Schlameuss Nov. 7, 2024, 2:10 p.m. UTC
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.