KVM: selftests: Make vm_create_default common
authorAndrew Jones <drjones@redhat.com>
Wed, 11 Nov 2020 12:26:29 +0000 (13:26 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sun, 15 Nov 2020 14:49:19 +0000 (09:49 -0500)
commitec2f18bb4783648041498b06d4bff222821efed1
tree45ffca04b36f76f8b4a5515aef9781b9d337d6ca
parentf63f0b68c864edea801de678bed279a3d7674f1a
KVM: selftests: Make vm_create_default common

The code is almost 100% the same anyway. Just move it to common
and add a few arch-specific macros.

Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Ben Gardon <bgardon@google.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Message-Id: <20201111122636.73346-5-drjones@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util.h
tools/testing/selftests/kvm/lib/aarch64/processor.c
tools/testing/selftests/kvm/lib/kvm_util.c
tools/testing/selftests/kvm/lib/s390x/processor.c
tools/testing/selftests/kvm/lib/x86_64/processor.c