KVM: arm64: selftests: Split get-reg-list test code
authorAndrew Jones <ajones@ventanamicro.com>
Tue, 25 Jul 2023 08:41:32 +0000 (16:41 +0800)
committerAnup Patel <anup@brainfault.org>
Wed, 9 Aug 2023 06:44:43 +0000 (12:14 +0530)
commit17da79e009c376523ab977a351a2a69bad8e847b
treea402e8bb520e5ff6770834f152f54d295f566eb4
parent0ace6bda5701a38211ac21d45d4683721758e844
KVM: arm64: selftests: Split get-reg-list test code

Split the arch-neutral test code out of aarch64/get-reg-list.c into
get-reg-list.c. To do this we invent a new make variable
$(SPLIT_TESTS) which expects common parts to be in the KVM selftests
root and the counterparts to have the same name, but be in
$(ARCH_DIR).

There's still some work to be done to de-aarch64 the common
get-reg-list.c, but we leave that to the next patch to avoid
modifying too much code while moving it.

Signed-off-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/aarch64/get-reg-list.c
tools/testing/selftests/kvm/get-reg-list.c [new file with mode: 0644]