OSDN Git Service

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)
commita36dbec67e26febc1fc551f4819e3c058b25e79c
tree6f39a22783790ea4913a36a8bed6f6e87d8e3079
parentbcb72d0627e8a3e531021c9bd2a14fae8da63ef3
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