kvm: selftests: introduce ucall
authorAndrew Jones <drjones@redhat.com>
Tue, 18 Sep 2018 17:54:25 +0000 (19:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:26:14 +0000 (00:26 +0200)
commit14c47b7530e2db1ab1d42ebbe99b2a58b8443ce7
tree780a25aaf8db4cacdf7a8a89d7eb6e858a0c3b5f
parent6c930268bcc4cef62194daf151097d2b94f67718
kvm: selftests: introduce ucall

Rework the guest exit to userspace code to generalize the concept
into what it is, a "hypercall to userspace", and provide two
implementations of it: the PortIO version currently used, but only
useable by x86, and an MMIO version that other architectures (except
s390) can use.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/cr4_cpuid_sync_test.c
tools/testing/selftests/kvm/dirty_log_test.c
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/lib/kvm_util_internal.h
tools/testing/selftests/kvm/lib/ucall.c [new file with mode: 0644]
tools/testing/selftests/kvm/platform_info_test.c
tools/testing/selftests/kvm/state_test.c
tools/testing/selftests/kvm/vmx_tsc_adjust_test.c