]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: flush TLB separately from MMU reset
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 14 Feb 2022 16:50:36 +0000 (11:50 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Mar 2022 13:50:42 +0000 (08:50 -0500)
commit6c2ffba1a56fbb889c4436a6864c2ce7beeb6ce1
tree570647433dbc54468b2d13c079d5cf002bb2cd6b
parentacb23727cd2f219c7f0137deeef9d7e764e05be3
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: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c