]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Move GUEST_ASSERT_EQ to utils header
authorRicardo Koller <ricarkol@google.com>
Fri, 11 Jun 2021 01:10:18 +0000 (18:10 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 14 Jun 2021 08:06:23 +0000 (09:06 +0100)
commit1c9c59959ded4dd858d258d4c28f5cd19a3f2f6b
tree2f8812879ec28f1d48c24edfa8fbd9ea5a939063
parent72ea9b4491d1f5766d79ebd8850a7eafa39e5300
KVM: selftests: Move GUEST_ASSERT_EQ to utils header

Move GUEST_ASSERT_EQ to a common header, kvm_util.h, for other
architectures and tests to use. Also modify __GUEST_ASSERT so it can be
reused to implement GUEST_ASSERT_EQ.

Signed-off-by: Ricardo Koller <ricarkol@google.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210611011020.3420067-5-ricarkol@google.com
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/x86_64/tsc_msrs_test.c