selftests: kvm/x86: Export x86_family() for use outside of processor.c
authorJim Mattson <jmattson@google.com>
Sat, 15 Jan 2022 05:24:29 +0000 (21:24 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jan 2022 17:12:03 +0000 (12:12 -0500)
commit398f9240f90f4168f5882180723f743f7b682049
treed13528d34ad0521e3244bba676ec3832988b2dda
parent21066101f42cfd86fdd835b70ce0e36c335f5f4d
selftests: kvm/x86: Export x86_family() for use outside of processor.c

Move this static inline function to processor.h, so that it can be
used in individual tests, as needed.

Opportunistically replace the bare 'unsigned' with 'unsigned int.'

Signed-off-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220115052431.447232-5-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