]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: s390: Add capability that forwards operation exceptions
authorJanosch Frank <frankja@linux.ibm.com>
Tue, 8 Jul 2025 12:57:57 +0000 (12:57 +0000)
committerJanosch Frank <frankja@linux.ibm.com>
Fri, 21 Nov 2025 09:26:03 +0000 (10:26 +0100)
commit8e8678e740ecde2ae4a0404fd9b4ed2b726e236d
tree5676c6342e430862cdaf69f776f6bc4a2ef9951d
parent182a258b5ec4a45170e776d3a0c0bccfc4fab998
KVM: s390: Add capability that forwards operation exceptions

Setting KVM_CAP_S390_USER_OPEREXEC will forward all operation
exceptions to user space. This also includes the 0x0000 instructions
managed by KVM_CAP_S390_USER_INSTR0. It's helpful if user space wants
to emulate instructions which do not (yet) have an opcode.

While we're at it refine the documentation for
KVM_CAP_S390_USER_INSTR0.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Documentation/virt/kvm/api.rst
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/intercept.c
arch/s390/kvm/kvm-s390.c
include/uapi/linux/kvm.h
tools/testing/selftests/kvm/Makefile.kvm
tools/testing/selftests/kvm/s390/user_operexec.c [new file with mode: 0644]