]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Add a self test for CMCI and UCNA emulations.
authorJue Wang <juew@google.com>
Fri, 10 Jun 2022 17:11:34 +0000 (10:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:52:04 +0000 (04:52 -0400)
commitbe4180b10eb7199c1bef04f7b25aa757ffed30ac
tree7c6bc6188a527e336d295e5316280c507989c214
parent92590a8d264f590b3ceab708ca125d99b36ada0b
KVM: selftests: Add a self test for CMCI and UCNA emulations.

This patch add a self test that verifies user space can inject
UnCorrectable No Action required (UCNA) memory errors to the guest.
It also verifies that incorrectly configured MSRs for Corrected
Machine Check Interrupt (CMCI) emulation will result in #GP.

Signed-off-by: Jue Wang <juew@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220610171134.772566-9-juew@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/include/x86_64/apic.h
tools/testing/selftests/kvm/include/x86_64/mce.h [new file with mode: 0644]
tools/testing/selftests/kvm/x86_64/ucna_injection_test.c [new file with mode: 0644]