]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: kvm/x86: Introduce is_amd_cpu()
authorJim Mattson <jmattson@google.com>
Sat, 15 Jan 2022 05:24:28 +0000 (21:24 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jan 2022 17:11:43 +0000 (12:11 -0500)
commitd2c9da1667bb20fc006cc5e57efbeafef8848dfc
tree026c8e4b61734d3dd6ecac946b291f14cefb09df
parent19dd38b4c71aa36ea269bc285e839fa6ba20a801
selftests: kvm/x86: Introduce is_amd_cpu()

Replace the one ad hoc "AuthenticAMD" CPUID vendor string comparison
with a new function, is_amd_cpu().

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