KVM: MMU: Move gpte_access() out of paging_tmpl.h
authorAvi Kivity <avi@redhat.com>
Wed, 12 Sep 2012 11:03:28 +0000 (14:03 +0300)
committerAvi Kivity <avi@redhat.com>
Thu, 20 Sep 2012 10:00:08 +0000 (13:00 +0300)
commit3d34adec7081621ff51c195be045b87d75c0c49d
tree0f2be432c532d25e8979b3853eb57af754d96f72
parentedc2ae84eb40a3c062210fe01af1cae1633cc810
KVM: MMU: Move gpte_access() out of paging_tmpl.h

We no longer rely on paging_tmpl.h defines; so we can move the function
to mmu.c.

Rely on zero extension to 64 bits to get the correct nx behaviour.

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