KVM: s390: Cleanup ipte lock access and SIIF facility checks
authorPierre Morel <pmorel@linux.ibm.com>
Wed, 4 May 2022 12:29:08 +0000 (14:29 +0200)
committerJanosch Frank <frankja@linux.ibm.com>
Wed, 20 Jul 2022 08:57:36 +0000 (10:57 +0200)
commit0130337ec45bffd26ba3e782850da3b68f1eef9d
treee5390763753c56aef126a00c4b81bc980c7b231e
parentc3f0e5fd2d33d80c5a5a8b5e5d2bab2841709cc8
KVM: s390: Cleanup ipte lock access and SIIF facility checks

We can check if SIIF is enabled by testing the sclp_info struct
instead of testing the sie control block eca variable as that
facility is always enabled if available.

Also let's cleanup all the ipte related struct member accesses
which currently happen by referencing the KVM struct via the
VCPU struct.
Making the KVM struct the parameter to the ipte_* functions
removes one level of indirection which makes the code more readable.

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Nico Boehr <nrb@linux.ibm.com>
Link: https://lore.kernel.org/all/20220711084148.25017-2-pmorel@linux.ibm.com/
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
arch/s390/kvm/gaccess.c
arch/s390/kvm/gaccess.h
arch/s390/kvm/priv.c