]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nSVM: Drop pointless pdptrs_changed() check on nested transition
authorSean Christopherson <seanjc@google.com>
Mon, 7 Jun 2021 09:01:57 +0000 (12:01 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 17 Jun 2021 17:09:46 +0000 (13:09 -0400)
commit8e2780e8315c72f0ef6d0e8b2e2877a644b7a491
tree6f39a22783790ea4913a36a8bed6f6e87d8e3079
parent29bced99bfcfe7f11acd89131c7ced47c37acfc4
KVM: nSVM: Drop pointless pdptrs_changed() check on nested transition

Remove the "PDPTRs unchanged" check to skip PDPTR loading during nested
SVM transitions as it's not at all an optimization.  Reading guest memory
to get the PDPTRs isn't magically cheaper by doing it in pdptrs_changed(),
and if the PDPTRs did change, KVM will end up doing the read twice.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210607090203.133058-3-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/nested.c