KVM: s390: Enable specification exception interpretation
authorJanis Schoetterl-Glausch <scgl@linux.ibm.com>
Tue, 29 Jun 2021 08:55:30 +0000 (10:55 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 27 Aug 2021 16:35:20 +0000 (18:35 +0200)
commit7119decf47d9867266459615be502e5d2cecedba
treeaf9d76e4525e2be6fdf33853336a7bfe32e6a4e7
parent1f703d2cf20464338c3d5279dddfb65ac79b8782
KVM: s390: Enable specification exception interpretation

When this feature is enabled the hardware is free to interpret
specification exceptions generated by the guest, instead of causing
program interruption interceptions.

This benefits (test) programs that generate a lot of specification
exceptions (roughly 4x increase in exceptions/sec).

Interceptions will occur as before if ICTL_PINT is set,
i.e. if guest debug is enabled.

There is no indication if this feature is available or not and the
hardware is free to interpret or not. So we can simply set this bit and
if the hardware ignores it we fall back to intercept 8 handling.

Signed-off-by: Janis Schoetterl-Glausch <scgl@linux.ibm.com>
Link: https://lore.kernel.org/linux-s390/20210706114714.3936825-1-scgl@linux.ibm.com/
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/vsie.c