Skip to content
Commit 45bd07b9 authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@redhat.com>
parent 411c588d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment