KVM: arm64: selftests: get-reg-list: Introduce vcpu configs
authorAndrew Jones <drjones@redhat.com>
Mon, 31 May 2021 10:33:40 +0000 (12:33 +0200)
committerMarc Zyngier <maz@kernel.org>
Tue, 22 Jun 2021 07:51:28 +0000 (08:51 +0100)
commit2f9ace5d4557f8ceea07969d6214c320f5e50c0c
tree989a03f8fe00a316ab7c4e5ec2b65d416a2c5200
parent8124c8a6b35386f73523d27eacb71b5364a68c4c
KVM: arm64: selftests: get-reg-list: Introduce vcpu configs

We already break register lists into sublists that get selected based
on vcpu config. However, since we only had two configs (vregs and sve),
we didn't structure the code very well to manage them. Restructure it
now to more cleanly handle register sublists that are dependent on the
vcpu config.

This patch has no intended functional change (except for the vcpu
config name now being prepended to all output).

Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Ricardo Koller <ricarkol@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210531103344.29325-2-drjones@redhat.com
tools/testing/selftests/kvm/aarch64/get-reg-list.c