]> www.infradead.org Git - users/dwmw2/linux.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>
Mon, 21 Feb 2022 15:05:25 +0000 (10:05 -0500)
commitf4bc051fc91ab9f1d5225d94e52d369ef58bec58
treeed44a71386009c50d976adab1d1c457c19635909
parent43a901340211ce6aaa89a59218194de2c27b267a
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