On 02/05/2022 17.41, Janis Schoetterl-Glausch wrote:
Some instructions are emulated by KVM. Test that KVM correctly emulates storage key checking for two of those instructions (STORE CPU ADDRESS, SET PREFIX). Test success and error conditions, including coverage of storage and fetch protection override. Also add test for TEST PROTECTION, even if that instruction will not be emulated by KVM under normal conditions. Signed-off-by: Janis Schoetterl-Glausch <scgl@xxxxxxxxxxxxx> --- lib/s390x/asm/arch_def.h | 20 ++-- s390x/skey.c | 249 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 260 insertions(+), 9 deletions(-)
Acked-by: Thomas Huth <thuth@xxxxxxxxxx>