OSDN Git Service

KVM: x86: Add emulation for MSR_IA32_MCx_CTL2 MSRs.
authorJue Wang <juew@google.com>
Fri, 10 Jun 2022 17:11:32 +0000 (10:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:52:03 +0000 (04:52 -0400)
commit281b52780b57821abc434c0413107d3075881a1f
tree817d15bbccb9b1feb0cd249dc26d1ddf131807ad
parent087acc4e1847993a66f43128e40be0ab2244c98f
KVM: x86: Add emulation for MSR_IA32_MCx_CTL2 MSRs.

This patch adds the emulation of IA32_MCi_CTL2 registers to KVM. A
separate mci_ctl2_banks array is used to keep the existing mce_banks
register layout intact.

In Machine Check Architecture, in addition to MCG_CMCI_P, bit 30 of
the per-bank register IA32_MCi_CTL2 controls whether Corrected Machine
Check error reporting is enabled.

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