OSDN Git Service

KVM: SVM: Don't bother writing vmcb->save.rip at vCPU RESET/INIT
authorSean Christopherson <seanjc@google.com>
Tue, 13 Jul 2021 16:32:58 +0000 (09:32 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 15:01:53 +0000 (11:01 -0400)
commit9e90e215d9c9f013cc354c4fe1a1313531a97a05
tree92aca92381258577e3626878f84cad5f9b796b6d
parent49d8665cc20b973995b5f519222d3270daa82f3f
KVM: SVM: Don't bother writing vmcb->save.rip at vCPU RESET/INIT

Drop unnecessary initialization of vmcb->save.rip during vCPU RESET/INIT,
as svm_vcpu_run() unconditionally propagates VCPU_REGS_RIP to save.rip.

No true functional change intended.

Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210713163324.627647-21-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c