KVM: s390: vsie: Use virt_to_phys for facility control block
authorNina Schoetterl-Glausch <nsg@linux.ibm.com>
Tue, 19 Mar 2024 16:44:20 +0000 (17:44 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 17 Apr 2024 11:37:59 +0000 (13:37 +0200)
commit22fdd8ba61187582843f090f100284d9e826adca
treea31d70243981a32ca5e4e99a67361dad902ec754
parent8692a24d0fae19f674d51726d179ad04ba95d958
KVM: s390: vsie: Use virt_to_phys for facility control block

In order for SIE to interpretively execute STFLE, it requires the real
or absolute address of a facility-list control block.
Before writing the location into the shadow SIE control block, convert
it from a virtual address.
We currently do not run into this bug because the lower 31 bits are the
same for virtual and physical addresses.

Signed-off-by: Nina Schoetterl-Glausch <nsg@linux.ibm.com>
Link: https://lore.kernel.org/r/20240319164420.4053380-3-nsg@linux.ibm.com
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Message-Id: <20240319164420.4053380-3-nsg@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kvm/vsie.c