OSDN Git Service

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)
commiteede2065cacce2e04110bc6e45e9dc8e843c571b
tree7c6bc6188a527e336d295e5316280c507989c214
parentaebc3ca19063d68b76bcaaca81558d4f180c61b0
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]