]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit081f753d24b09e5198f6a79b3f999bd4af66f957
treed5d199202725e197ef4a56a79d5d2cff5eed6231
parent70651aabe3b507d1c5319cff1145af8ecf74c885
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