]> www.infradead.org Git - linux.git/commit
KVM: x86: Use "is Intel compatible" helper to emulate SYSCALL in !64-bit
authorSean Christopherson <seanjc@google.com>
Fri, 5 Apr 2024 23:55:59 +0000 (16:55 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 10 Jun 2024 21:29:38 +0000 (14:29 -0700)
commitd99e4cb2ae2e02a632d3587d710eecf5a02c20e7
treeec3976612a52508e66649196fbb7ffe885e91820
parentc092fc879f99cf536881892e2dbe2a70074e9915
KVM: x86: Use "is Intel compatible" helper to emulate SYSCALL in !64-bit

Use guest_cpuid_is_intel_compatible() to determine whether SYSCALL in
32-bit Protected Mode (including Compatibility Mode) should #UD or succeed.
The existing code already does the exact equivalent of
guest_cpuid_is_intel_compatible(), just in a rather roundabout way.

No functional change intended.

Link: https://lore.kernel.org/r/20240405235603.1173076-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/emulate.c
arch/x86/kvm/kvm_emulate.h
arch/x86/kvm/x86.c