]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: Add a comment to clarify what vcpu_svm.vmcb points at
authorSean Christopherson <seanjc@google.com>
Tue, 6 Apr 2021 17:18:10 +0000 (10:18 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Apr 2021 08:18:49 +0000 (04:18 -0400)
commita31ec7b86bed980279b8fc1eb5e15ee9c2a1837d
treeb5043a36ae1d1cd5f17f3f65caf21b196ed8f775
parenta6252415ade8385aaee0c4e2485466851813f7da
KVM: SVM: Add a comment to clarify what vcpu_svm.vmcb points at

Add a comment above the declaration of vcpu_svm.vmcb to call out that it
is simply a shorthand for current_vmcb->ptr.  The myriad accesses to
svm->vmcb are quite confusing without this crucial detail.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210406171811.4043363-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.h