mbox series

[v2,0/3] selftests: kvm: s390: Add ucontrol memory selftests

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

Message

Christoph Schlameuss Sept. 2, 2024, 11:49 a.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.