]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92e89bbd2d6f35603012803c923a67692bd57fd0
treee5390763753c56aef126a00c4b81bc980c7b231e
parentb07ad099ebe9924f89983e5beb67bf974eebd7e6
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