summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/user
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-08-22 10:19:57 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2018-08-22 17:48:37 +0300
commit4e18bccc2e5544f0be28fc1c4e6be47a469d6c60 (patch)
treed334c9b09f5e94cb97c85ac487d4da9bf75cf86f /tools/testing/selftests/user
parent07a262cc7c586e3f385a61b8870b0913bf31309a (diff)
downloadlinux-4e18bccc2e5544f0be28fc1c4e6be47a469d6c60.tar.xz
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>
Diffstat (limited to 'tools/testing/selftests/user')
0 files changed, 0 insertions, 0 deletions