KVM: MMU: Initialize a shadow page's global attribute from cr4.pge
authorAvi Kivity <avi@redhat.com>
Sun, 21 Dec 2008 17:36:59 +0000 (19:36 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:51 +0000 (11:02 +0200)
commite2078318042569682d0496cfd7bd962a766e82b1
treed5f6d2d2c25471f61801f8d0a01a0ddf8d257500
parent2f0b3d60b2c43aef7cd10169c425c052169c622a
KVM: MMU: Initialize a shadow page's global attribute from cr4.pge

If cr4.pge is cleared, we ought to treat any ptes in the page as non-global.
This allows us to remove the check from set_spte().

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c