KVM: s390: Optimize paths where get_vcpu_asce() is invoked
authorAlexander Yarygin <yarygin@linux.vnet.ibm.com>
Thu, 22 Jan 2015 09:44:11 +0000 (12:44 +0300)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 17 Mar 2015 15:25:31 +0000 (16:25 +0100)
commit75a1812230ad7ad16e5a06b5ef2220f765b12da5
tree8272f8ea8d732d45f6eca9d403aebec415c2391d
parent8ae04b8f500b9f46652c63431bf658223d875597
KVM: s390: Optimize paths where get_vcpu_asce() is invoked

During dynamic address translation the get_vcpu_asce()
function can be invoked several times. It's ok for usual modes, but will
be slow if CPUs are in AR mode. Let's call the get_vcpu_asce() once and
pass the result to the called functions.

Signed-off-by: Alexander Yarygin <yarygin@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/gaccess.c