KVM: arm64: selftests: Finish generalizing get-reg-list
authorAndrew Jones <ajones@ventanamicro.com>
Tue, 25 Jul 2023 08:41:33 +0000 (16:41 +0800)
committerAnup Patel <anup@brainfault.org>
Wed, 9 Aug 2023 06:45:12 +0000 (12:15 +0530)
commitbe4c58060c3efd1f8dff59e59ff8e69d08f00560
tree40cfc454eff18881ed27ee30a6d1ca5523b61b51
parent17da79e009c376523ab977a351a2a69bad8e847b
KVM: arm64: selftests: Finish generalizing get-reg-list

Add some unfortunate #ifdeffery to ensure the common get-reg-list.c
can be compiled and run with other architectures. The next
architecture to support get-reg-list should now only need to provide
$(ARCH_DIR)/get-reg-list.c where arch-specific print_reg() and
vcpu_configs[] get defined.

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/get-reg-list.c