KVM: MMU: Optimize gpte_access() slightly
authorAvi Kivity <avi@redhat.com>
Wed, 12 Sep 2012 10:53:08 +0000 (13:53 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 20 Sep 2012 10:00:07 +0000 (13:00 +0300)
commitedc2ae84eb40a3c062210fe01af1cae1633cc810
tree2e286495eef839146cb720429dae0cc98aa968bf
parent8ea667f259e3767fd3ee85a885c14e417835695e
KVM: MMU: Optimize gpte_access() slightly

If nx is disabled, then is gpte[63] is set we will hit a reserved
bit set fault before checking permissions; so we can ignore the
setting of efer.nxe.

Reviewed-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/paging_tmpl.h