]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Make APIC_VERSION capture only the magic 0x14UL.
authorJue Wang <juew@google.com>
Fri, 10 Jun 2022 17:11:27 +0000 (10:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:52:01 +0000 (04:52 -0400)
commit081218a63537649646f7e8286b118d4bd90ef012
treed52a10153311daa3c5018826218a7ac11d8fa6c1
parent1f6d89c8e96cdab81e866ee99c0dca9b4f28b443
KVM: x86: Make APIC_VERSION capture only the magic 0x14UL.

Refactor APIC_VERSION so that the maximum number of LVT entries is
inserted at runtime rather than compile time. This will be used in a
subsequent commit to expose the LVT CMCI Register to VMs that support
Corrected Machine Check error counting/signaling
(IA32_MCG_CAP.MCG_CMCI_P=1).

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Jue Wang <juew@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220610171134.772566-2-juew@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c