]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd18f0176795a84708e0afe54595ae9624e12dd9a
tree81b799787678110e0a27446316eb47c2e0bbbaa2
parent6c9cae9408beb1aca230046efb55b3c6db9f58e2
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