summary refs log tree commit diff
path: root/tools/vm
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-08-22 15:19:57 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-08-22 16:48:37 +0200
commit4e18bccc2e5544f0be28fc1c4e6be47a469d6c60 (patch)
treed334c9b09f5e94cb97c85ac487d4da9bf75cf86f /tools/vm
parent07a262cc7c586e3f385a61b8870b0913bf31309a (diff)
downloadlinux-4e18bccc2e5544f0be28fc1c4e6be47a469d6c60.tar.gz
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/vm')
0 files changed, 0 insertions, 0 deletions