]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit510fb6f7984196e8b509024731458c9d96bb0d54
treed13528d34ad0521e3244bba676ec3832988b2dda
parentd2c9da1667bb20fc006cc5e57efbeafef8848dfc
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