selftests: kvm/x86: Introduce x86_model()
authorJim Mattson <jmattson@google.com>
Sat, 15 Jan 2022 05:24:30 +0000 (21:24 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jan 2022 17:12:15 +0000 (12:12 -0500)
commit2ba9047424fc7243c63ac57f5fdfa754aa895e3c
tree58faf6f69cea4cc8fc18b94a09d91ea22af06f92
parent398f9240f90f4168f5882180723f743f7b682049
selftests: kvm/x86: Introduce x86_model()

Extract the x86 model number from CPUID.01H:EAX.

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