kvm: selftests: tidy up kvm_util
authorAndrew Jones <drjones@redhat.com>
Tue, 18 Sep 2018 17:54:28 +0000 (19:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:26:44 +0000 (00:26 +0200)
commiteabe7881d264fd8ee074636fe50c8a8af08fedfd
tree0454dd2da4c33826ba64061328cbb38b56b43675
parenteea192bfd96db157151d27dd9c5e3e6a50c5d6be
kvm: selftests: tidy up kvm_util

Tidy up kvm-util code: code/comment formatting, remove unused code,
and move x86 specific code out. We also move vcpu_dump() out of
common code, because not all arches (AArch64) have KVM_GET_REGS.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/include/x86_64/processor.h
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/lib/kvm_util_internal.h
tools/testing/selftests/kvm/lib/x86_64/processor.c
tools/testing/selftests/kvm/x86_64/dirty_log_test.c