]> 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)
commit7a3a8ef7f58be3e48c159a06fc6f8724521909cf
tree7c6bc6188a527e336d295e5316280c507989c214
parent1061f81f256b39a04e2fd9996a8642091297394a
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]