KVM: X86: Don't reset mmu context when X86_CR4_PCIDE 1->0
authorLai Jiangshan <laijs@linux.alibaba.com>
Sun, 19 Sep 2021 02:42:45 +0000 (10:42 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 22 Oct 2021 09:19:29 +0000 (05:19 -0400)
commit552617382c197949ff965a3559da8952bf3c1fa5
tree9e6875b20efc5eec3f3c9b925d2415f0736d2d17
parent413eaa4ecd0f115ab2178d924ae75d3409b4ff5c
KVM: X86: Don't reset mmu context when X86_CR4_PCIDE 1->0

X86_CR4_PCIDE doesn't participate in kvm_mmu_role, so the mmu context
doesn't need to be reset.  It is only required to flush all the guest
tlb.

Signed-off-by: Lai Jiangshan <laijs@linux.alibaba.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210919024246.89230-2-jiangshanlai@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c