]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: make kvm_mmu_reset_context() flush the guest TLB
authorAvi Kivity <avi@redhat.com>
Sun, 12 Jun 2011 15:14:08 +0000 (18:14 +0300)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:27 +0000 (13:16 +0300)
commitd7d7414065dfd6504465db5c2aadbc69e88db88d
tree3f4b996f14c03e166bc8636ad167d1c0662f4ac4
parente92008e1e65e6f6982734076566f49566f38559b
KVM: MMU: make kvm_mmu_reset_context() flush the guest TLB

kvm_set_cr0() and kvm_set_cr4(), and possible other functions,
assume that kvm_mmu_reset_context() flushes the guest TLB.  However,
it does not.

Fix by flushing the tlb (and syncing the new root as well).

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