selftests: kvm/x86: Parameterize the CPUID vendor string check
authorJim Mattson <jmattson@google.com>
Sat, 15 Jan 2022 05:24:27 +0000 (21:24 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jan 2022 17:11:40 +0000 (12:11 -0500)
commitb33b9c407861985713ca18cc9ea05b7540210ad4
tree81b799787678110e0a27446316eb47c2e0bbbaa2
parent7ff775aca48adc854436b92c060e5eebfffb6a4a
selftests: kvm/x86: Parameterize the CPUID vendor string check

Refactor is_intel_cpu() to make it easier to reuse the bulk of the
code for other vendors in the future.

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220115052431.447232-3-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/x86_64/processor.c