KVM: VMX: Macrofy the MSR bitmap getters and setters
authorSean Christopherson <seanjc@google.com>
Tue, 9 Nov 2021 01:30:46 +0000 (01:30 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Nov 2021 15:56:23 +0000 (10:56 -0500)
commit0cacb80b98f36a5ba67cc0b0efaea98e2a53da4c
treed5d199202725e197ef4a56a79d5d2cff5eed6231
parent67f4b9969c305be515e47f809ecacfd86bd20a9c
KVM: VMX: Macrofy the MSR bitmap getters and setters

Add builder macros to generate the MSR bitmap helpers to reduce the
amount of copy-paste code, especially with respect to all the magic
numbers needed to calc the correct bit location.

No functional change intended.

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