]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Move GUEST_ASSERT_EQ to utils header
authorRicardo Koller <ricarkol@google.com>
Thu, 13 May 2021 00:28:00 +0000 (17:28 -0700)
committerMarc Zyngier <maz@kernel.org>
Tue, 1 Jun 2021 08:48:33 +0000 (09:48 +0100)
commit124d7bb43462d1b4eaee2463fcbc7e9e41cac20f
tree9bfbf1cfb2ab7bc5e0707e95b17c372a71de4849
parent8c4680c968180739e3facd9a65e8f7939a3bdc6d
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>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210513002802.3671838-4-ricarkol@google.com
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/x86_64/tsc_msrs_test.c