OSDN Git Service

KVM: x86: Enable CMCI capability by default and handle injected UCNA errors
authorJue Wang <juew@google.com>
Fri, 10 Jun 2022 17:11:33 +0000 (10:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:52:03 +0000 (04:52 -0400)
commitaebc3ca19063d68b76bcaaca81558d4f180c61b0
treeb1d80c671dc1a07e35f8039be0a2c1ad89022ff3
parent281b52780b57821abc434c0413107d3075881a1f
KVM: x86: Enable CMCI capability by default and handle injected UCNA errors

This patch enables MCG_CMCI_P by default in kvm_mce_cap_supported. It
reuses ioctl KVM_X86_SET_MCE to implement injection of UnCorrectable
No Action required (UCNA) errors, signaled via Corrected Machine
Check Interrupt (CMCI).

Neither of the CMCI and UCNA emulations depends on hardware.

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