]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b8d2b91bf0c68e43bcdf5f118f91a3b185421b5
tree989a03f8fe00a316ab7c4e5ec2b65d416a2c5200
parentaca98666aaa2f68c1752cba973556812e3a190eb
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