]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Segregate mmu pages created with different cr4.pge settings
authorAvi Kivity <avi@redhat.com>
Sun, 21 Dec 2008 17:27:36 +0000 (19:27 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 24 Mar 2009 09:02:51 +0000 (11:02 +0200)
commitfcdfef9f1e26db248a2e2f781d649c7f7dddf8e2
tree4a2afc6eee48522e380f69fc4c28abde314d3edb
parentf3b33d1de9b575dfe62da22a1bc15aef3f6fc3de
KVM: MMU: Segregate mmu pages created with different cr4.pge settings

Don't allow a vcpu with cr4.pge cleared to use a shadow page created with
cr4.pge set; this might cause a cr3 switch not to sync ptes that have the
global bit set (the global bit has no effect if !cr4.pge).

This can only occur on smp with different cr4.pge settings for different
vcpus (since a cr4 change will resync the shadow ptes), but there's no
cost to being correct here.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c