KVM: selftests: Add an x86-only test to verify nested exception queueing
authorSean Christopherson <seanjc@google.com>
Tue, 30 Aug 2022 23:16:13 +0000 (23:16 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:03:12 +0000 (12:03 -0400)
commit28c40b2cfb841d55f9f10fd973e1a72e0bf09572
treebcdcf0ee6bf8ff0a6179db278a43cd8b5268100f
parent1e2e9222e6e0367c8dc612013b07f76bbce87e9e
KVM: selftests: Add an x86-only test to verify nested exception queueing

Add a test to verify that KVM_{G,S}ET_EVENTS play nice with pending vs.
injected exceptions when an exception is being queued for L2, and that
KVM correctly handles L1's exception intercept wants.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20220830231614.3580124-27-seanjc@google.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/nested_exceptions_test.c [new file with mode: 0644]