linux/tools/testing/selftests/kvm
Peter Xu 4e18bccc2e kvm: selftest: unify the guest port macros
Most of the tests are using the same way to do guest to host sync but
the code is mostly duplicated.  Generalize the guest port macros into
the common header file and use it in different tests.

Meanwhile provide "struct guest_args" and a helper "guest_args_read()"
to hide the register details when playing with these port operations on
RDI and RSI.

Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-08-22 16:48:37 +02:00
..
include kvm: selftest: unify the guest port macros 2018-08-22 16:48:37 +02:00
lib kvm: selftest: unify the guest port macros 2018-08-22 16:48:37 +02:00
.gitignore kvm: selftests: add basic test for state save and restore 2018-08-06 17:32:04 +02:00
cr4_cpuid_sync_test.c kvm: selftest: unify the guest port macros 2018-08-22 16:48:37 +02:00
Makefile kvm: selftests: add basic test for state save and restore 2018-08-06 17:32:04 +02:00
set_sregs_test.c
state_test.c kvm: selftest: unify the guest port macros 2018-08-22 16:48:37 +02:00
sync_regs_test.c kvm: selftest: unify the guest port macros 2018-08-22 16:48:37 +02:00
vmx_tsc_adjust_test.c kvm: selftest: unify the guest port macros 2018-08-22 16:48:37 +02:00