]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff3a06fd95e39056ace27689ff5db93b35cbce46
tree9e6875b20efc5eec3f3c9b925d2415f0736d2d17
parentb2277dbc9d50fc9f160fcc95db17f2adc285bfbb
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