Thomas Huth ba97ed0af6 KVM: selftests: x86: Use TAP interface in the sync_regs test
The sync_regs test currently does not have any output (unless one
of the TEST_ASSERT statement fails), so it's hard to say for a user
whether a certain new sub-test has been included in the binary or
not. Let's make this a little bit more user-friendly and include
some TAP output via the kselftest_harness.h / kvm_test_harness.h
interface.
To be able to use the interface, we have to break up the huge main()
function here in more fine grained parts - then we can use the new
KVM_ONE_VCPU_TEST() macro to define the individual tests. Since these
are run with a separate VM now, we have also to make sure to create
the expected state at the beginning of each test, so some parts grow
a little bit - which should be OK considering that the individual
tests are more self-contained now.

Suggested-by: David Matlack <dmatlack@google.com>
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20240208204844.119326-6-thuth@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
2024-02-28 20:58:12 +00:00
..
2023-08-24 10:41:47 -04:00
2024-01-08 10:57:34 -08:00
2024-01-18 14:35:29 -08:00
2023-06-29 10:11:10 -07:00
2023-02-23 09:37:29 -08:00
2023-11-01 17:08:10 -10:00
2023-10-15 20:07:52 +01:00
2023-04-25 11:05:04 -07:00
2023-10-05 14:22:53 -06:00
2023-11-03 07:41:18 -10:00
2023-08-21 13:46:25 -07:00
2024-01-11 10:07:29 -08:00