KVM: x86: Advertise fast REP string features inherent to the CPU
authorJim Mattson <jmattson@google.com>
Thu, 1 Sep 2022 21:18:07 +0000 (14:18 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 24 Jan 2023 18:05:18 +0000 (10:05 -0800)
commit2a4209d6a9cb51082813e3081e1172ae68d27935
treebd66f553b3f03217893769b0281cc44dc47df62a
parentf8df91e73a6827a4569bb56cd53e55b4ea2f5b1f
KVM: x86: Advertise fast REP string features inherent to the CPU

Fast zero-length REP MOVSB, fast short REP STOSB, and fast short REP
{CMPSB,SCASB} are inherent features of the processor that cannot be
hidden by the hypervisor. When these features are present on the host,
enumerate them in KVM_GET_SUPPORTED_CPUID.

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Link: https://lore.kernel.org/r/20220901211811.2883855-2-jmattson@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/cpuid.c