]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7ac2ac1a6773e3dd313ca38eed277faf03b7e12
tree8272f8ea8d732d45f6eca9d403aebec415c2391d
parentbd89150d33c20296199fd54edd389aa8b1d19d38
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