]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0431bc3836f932bb65959a6b04f44dd852a2c65
tree45ffca04b36f76f8b4a5515aef9781b9d337d6ca
parent601e93c096e14fd02a6967c468028fe2cd32d517
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