Skip to content
Commit b5f61c03 authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: x86: flush TLB separately from MMU reset



For both CR0 and CR4, disassociate the TLB flush logic from the
MMU role logic.  Instead  of relying on kvm_mmu_reset_context() being
a superset of various TLB flushes (which is not necessarily going to
be the case in the future), always call it if the role changes
but also set the various TLB flush requests according to what is
in the manual.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 6d58f275
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment