aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sean Christopherson <seanjc@google.com> 2021-07-13 09:32:46 -0700
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2021-08-02 11:01:50 -0400
commit5d2d7e41e3b80f37ec8673825fae07ffe9f140c3 (patch)
treea0694e0cc70dc75dff61835ad2e1b5ad8d6a66e5
parentKVM: VMX: Remove explicit MMU reset in enter_rmode() (diff)
downloadlinux-5d2d7e41e3b80f37ec8673825fae07ffe9f140c3.tar.gz
linux-5d2d7e41e3b80f37ec8673825fae07ffe9f140c3.tar.bz2
linux-5d2d7e41e3b80f37ec8673825fae07ffe9f140c3.zip
KVM: SVM: Drop explicit MMU reset at RESET/INIT
Drop an explicit MMU reset in SVM's vCPU RESET/INIT flow now that the common x86 path correctly handles conditional MMU resets, e.g. if INIT arrives while the vCPU is in 64-bit mode. This reverts commit ebae871a509d ("kvm: svm: reset mmu on VCPU reset"). Reviewed-by: Reiji Watanabe <reijiw@google.com> Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20210713163324.627647-9-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--arch/x86/kvm/svm/svm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
index 05c1e60d829a..a9af9bff4755 100644
--- a/arch/x86/kvm/svm/svm.c
+++ b/arch/x86/kvm/svm/svm.c
@@ -1261,7 +1261,6 @@ static void init_vmcb(struct kvm_vcpu *vcpu)
* It also updates the guest-visible cr0 value.
*/
svm_set_cr0(vcpu, X86_CR0_NW | X86_CR0_CD | X86_CR0_ET);
- kvm_mmu_reset_context(vcpu);
save->cr4 = X86_CR4_PAE;