diff options
author | 2023-01-11 00:44:45 +0000 | |
---|---|---|
committer | 2023-01-24 10:06:33 -0800 | |
commit | ea25ace7710b918fe49647350d4dee363563908f (patch) | |
tree | fc1eaec302b3dd749ebca471b2a1fc61b14d9074 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c | |
parent | KVM: selftests: x86: Cache host CPU vendor (AMD vs. Intel) (diff) | |
download | wireguard-linux-ea25ace7710b918fe49647350d4dee363563908f.tar.xz wireguard-linux-ea25ace7710b918fe49647350d4dee363563908f.zip |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c')
0 files changed, 0 insertions, 0 deletions