]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Add Corrected Machine Check Interrupt (CMCI) emulation to lapic.
authorJue Wang <juew@google.com>
Fri, 10 Jun 2022 17:11:30 +0000 (10:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:52:02 +0000 (04:52 -0400)
commit7dbdcb4e60227cc967aff55a37c4746582ef49d9
tree2012c0ed9626ed3da2875fb10d5cdb0c44f69cc4
parentf429b3f92ab6c7ef8799b97f9a6ef3213a4d1bc8
KVM: x86: Add Corrected Machine Check Interrupt (CMCI) emulation to lapic.

This patch calculates the number of lvt entries as part of
KVM_X86_MCE_SETUP conditioned on the presence of MCG_CMCI_P bit in
MCG_CAP and stores result in kvm_lapic. It translats from APIC_LVTx
register to index in lapic_lvt_entry enum. It extends the APIC_LVTx
macro as well as other lapic write/reset handling etc to support
Corrected Machine Check Interrupt.

Signed-off-by: Jue Wang <juew@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220610171134.772566-5-juew@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
arch/x86/kvm/x86.c