KVM: s390: selftests: Add uc_skey VM test case
authorChristoph Schlameuss <schlameuss@linux.ibm.com>
Fri, 8 Nov 2024 09:16:20 +0000 (10:16 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Mon, 11 Nov 2024 12:05:48 +0000 (12:05 +0000)
commit0185fbc6a2d3cf3cc346d53d91ce6fc5e58c7187
treefaf23ff08ad746fe97110921cc8cc0651de3b618
parentae16b0ab3baeb5e969dd8192a185297b96cd56a9
KVM: s390: selftests: Add uc_skey VM test case

Add a test case manipulating s390 storage keys from within the ucontrol
VM.

Storage key instruction (ISKE, SSKE and RRBE) intercepts and
Keyless-subset facility are disabled on first use, where the skeys are
setup by KVM in non ucontrol VMs.

Signed-off-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Link: https://lore.kernel.org/r/20241108091620.289406-1-schlameuss@linux.ibm.com
Acked-by: Janosch Frank <frankja@linux.ibm.com>
[frankja@linux.ibm.com: Fixed patch prefix]
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Message-ID: <20241108091620.289406-1-schlameuss@linux.ibm.com>
tools/testing/selftests/kvm/include/s390x/processor.h
tools/testing/selftests/kvm/s390x/ucontrol_test.c