]> 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)
commit19dd38b4c71aa36ea269bc285e839fa6ba20a801
tree81b799787678110e0a27446316eb47c2e0bbbaa2
parent4db5fc874f645ce262698efd239b7181af460e29
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