1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/tools/testing/selftests/kvm/lib/x86_64
Vishal Annapurve ea25ace771 KVM: selftests: x86: Use host's native hypercall instruction in kvm_hypercall()
Use the host CPU's native hypercall instruction, i.e. VMCALL vs. VMMCALL,
in kvm_hypercall(), as relying on KVM to patch in the native hypercall on
a #UD for the "wrong" hypercall requires KVM_X86_QUIRK_FIX_HYPERCALL_INSN
to be enabled and flat out doesn't work if guest memory is encrypted with
a private key, e.g. for SEV VMs.

Suggested-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Vishal Annapurve <vannapurve@google.com>
Link: https://lore.kernel.org/r/20230111004445.416840-4-vannapurve@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2023-01-24 10:06:33 -08:00
..
apic.c KVM: selftests: Introduce x2APIC register manipulation functions 2021-06-17 13:09:32 -04:00
handlers.S selftests: kvm: remove reassignment of non-absolute variables 2021-05-07 06:06:13 -04:00
hyperv.c KVM: selftests: Allocate Hyper-V partition assist page 2022-11-21 06:41:59 -05:00
memstress.c KVM: selftests: Assert in prepare_eptp() that nEPT is supported 2022-11-16 16:59:07 -08:00
processor.c KVM: selftests: x86: Use host's native hypercall instruction in kvm_hypercall() 2023-01-24 10:06:33 -08:00
svm.c Revert "KVM: selftests: Fix nested SVM tests when built with clang" 2022-09-30 06:39:34 -04:00
ucall.c KVM: selftests: Add ucall pool based implementation 2022-11-16 16:58:53 -08:00
vmx.c KVM: selftests: Create a vendor independent helper to allocate Hyper-V specific test pages 2022-11-21 06:41:22 -05:00