diff options
author | Oliver Upton <oupton@google.com> | 2022-03-16 03:55:38 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-02 12:41:10 +0300 |
commit | 6c2fa8b20d0cad3719b024ba0f25a50199a90c9a (patch) | |
tree | 56244d92d841351eb8959de384e5772151116fe1 /arch/x86/kvm/svm/svm.h | |
parent | f1a9761fbb00639c5e73835f7f373ef834bb867f (diff) | |
download | linux-6c2fa8b20d0cad3719b024ba0f25a50199a90c9a.tar.xz |
selftests: KVM: Test KVM_X86_QUIRK_FIX_HYPERCALL_INSN
Add a test that asserts KVM rewrites guest hypercall instructions to
match the running architecture (VMCALL on VMX, VMMCALL on SVM).
Additionally, test that with the quirk disabled, KVM no longer rewrites
guest instructions and instead injects a #UD.
Signed-off-by: Oliver Upton <oupton@google.com>
Message-Id: <20220316005538.2282772-3-oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm/svm.h')
0 files changed, 0 insertions, 0 deletions