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>
u64 mt_mask = shadow_mt_mask;
struct kvm_mmu_page *sp = page_header(__pa(shadow_pte));
+ if (!(vcpu->arch.cr4 & X86_CR4_PGE))
+ global = 0;
if (!global && sp->global) {
sp->global = 0;
if (sp->unsync) {