]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: s390: selftests: Streamline uc_skey test to issue iske after sske
authorChristoph Schlameuss <schlameuss@linux.ibm.com>
Tue, 28 Jan 2025 13:18:03 +0000 (14:18 +0100)
committerClaudio Imbrenda <imbrenda@linux.ibm.com>
Fri, 31 Jan 2025 11:03:53 +0000 (12:03 +0100)
commit32239066776a27287837a193b37c6e55259e5c10
tree79ef637b580163e61597cd5ef989f0662ed1dd75
parent84b7387692a8c849bd8bddd0f5c5474d4923aa6e
KVM: s390: selftests: Streamline uc_skey test to issue iske after sske

In some rare situations a non default storage key is already set on the
memory used by the test. Within normal VMs the key is reset / zapped
when the memory is added to the VM. This is not the case for ucontrol
VMs. With the initial iske check removed this test case can work in all
situations. The function of the iske instruction is still validated by
the remaining code.

Fixes: 0185fbc6a2d3 ("KVM: s390: selftests: Add uc_skey VM test case")
Signed-off-by: Christoph Schlameuss <schlameuss@linux.ibm.com>
Link: https://lore.kernel.org/r/20250128131803.1047388-1-schlameuss@linux.ibm.com
Message-ID: <20250128131803.1047388-1-schlameuss@linux.ibm.com>
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
tools/testing/selftests/kvm/s390/ucontrol_test.c