]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5845002b5298ac03717914689406def872ff17a8
tree46978b607a316e8bc0bd8e598bec6a5ddf025313
parentb1c505254e1670a71cda2e276c012d985cfd64f5
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