]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Add a test to get/set triple fault event
authorChenyi Qiang <chenyi.qiang@intel.com>
Tue, 24 May 2022 13:56:22 +0000 (21:56 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 09:21:13 +0000 (05:21 -0400)
commitaafb0445dee4fb323da21879e6ac97ea4c144fca
treeb8f8a7d7eb77e43a4761c2ad4211aadb8f1e01d9
parent95cd214f5b62ef3192dbe954c823bd13aa3c9da0
KVM: selftests: Add a test to get/set triple fault event

Add a selftest for triple fault event:
  - launch the L2 and exit to userspace via I/O.
  - using KVM_SET_VCPU_EVENTS to pend a triple fault event.
  - with the immediate_exit, check the triple fault is pending.
  - run for real with pending triple fault and L1 can see the triple
    fault.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Message-Id: <20220524135624.22988-3-chenyi.qiang@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/.gitignore
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/x86_64/triple_fault_event_test.c [new file with mode: 0644]