KVM: selftests: Explicitly verify KVM doesn't patch hypercall if quirk==off
authorSean Christopherson <seanjc@google.com>
Wed, 28 Sep 2022 23:36:50 +0000 (23:36 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Sep 2022 10:39:33 +0000 (06:39 -0400)
commitb7ab6d7d2cf7d5400592d1ff0448e8e0a09e5188
tree46978b607a316e8bc0bd8e598bec6a5ddf025313
parentfca6d06cd164c6c3029be6323ed06020fca0d933
KVM: selftests: Explicitly verify KVM doesn't patch hypercall if quirk==off

Explicitly verify that KVM doesn't patch in the native hypercall if the
FIX_HYPERCALL_INSN quirk is disabled.  The test currently verifies that
a #UD occurred, but doesn't actually verify that no patching occurred.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220928233652.783504-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/fix_hypercall_test.c