]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Use proper type-safe functions for vCPU => LBRs helpers
authorSean Christopherson <seanjc@google.com>
Wed, 27 Jul 2022 23:34:23 +0000 (23:34 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 10 Aug 2022 19:08:30 +0000 (15:08 -0400)
commit6953d88f6f46931394c791f3c704a055c0c7deb6
treeb2bf5b20e0ed7931a70758b79a832ca17673e2c8
parenta87618b9fd76e8529cabbb578bbd33335bbddece
KVM: VMX: Use proper type-safe functions for vCPU => LBRs helpers

Turn vcpu_to_lbr_desc() and vcpu_to_lbr_records() into functions in order
to provide type safety, to document exactly what they return, and to
allow consuming the helpers in vmx.h.  Move the definitions as necessary
(the macros "reference" to_vmx() before its definition).

No functional change intended.

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