KVM: MMU: Don't treat a global pte as such if cr4.pge is cleared
authorAvi Kivity <avi@redhat.com>
Sun, 21 Dec 2008 16:31:10 +0000 (18:31 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:48 +0000 (16:55 +0200)
commit25e2343246fe135fce672f41abe61e9d2c38caac
tree76699895f67a24cbcdc05415068905d7e5be84c4
parentfe634fd46ff643d98fdbcd153847e08c3c076e6e
KVM: MMU: Don't treat a global pte as such if cr4.pge is cleared

The pte.g bit is meaningless if global pages are disabled; deferring
mmu page synchronization on these ptes will lead to the guest using stale
shadow ptes.

Fixes Vista x86 smp bootloader failure.

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