KVM: x86: Split out logic to generate "readable" APIC regs mask to helper
authorSean Christopherson <seanjc@google.com>
Sat, 7 Jan 2023 01:10:23 +0000 (01:10 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:04:35 +0000 (10:04 -0800)
commitb5fcc59be72a76b5cf7bcc6d4aba6cdb14557d44
treec10ad769f8cbf60b562abc68c77f739ef3aab476
parentb223649576fc21bec46260805c2cd70e1cb3b8e8
KVM: x86: Split out logic to generate "readable" APIC regs mask to helper

Move the generation of the readable APIC regs bitmask to a standalone
helper so that VMX can use the mask for its MSR interception bitmaps.

No functional change intended.

Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20230107011025.565472-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h