]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit92590a8d264f590b3ceab708ca125d99b36ada0b
treeb1d80c671dc1a07e35f8039be0a2c1ad89022ff3
parent300febc8e41728b598a32ea7cf3e69a521950ccc
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