KVM: x86: Mark x2APIC DFR reg as non-existent for x2APIC
authorSean Christopherson <seanjc@google.com>
Sat, 7 Jan 2023 01:10:22 +0000 (01:10 +0000)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:04:35 +0000 (10:04 -0800)
commitb223649576fc21bec46260805c2cd70e1cb3b8e8
tree85aeaf63c677fa8feaf03e8ac864a57d37b15f09
parentab52be1b310bcb39e6745d34a8f0e8475d67381a
KVM: x86: Mark x2APIC DFR reg as non-existent for x2APIC

Mark APIC_DFR as being invalid/non-existent in x2APIC mode instead of
handling it as a one-off check in kvm_x2apic_msr_read().  This will allow
reusing "valid_reg_mask" to generate VMX's interception bitmaps for
x2APIC.  Handling DFR in the common read path may also fix the Hyper-V
PV MSR interface, if that can coexist with x2APIC.

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