]> 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)
commitd353c3e6ab84dd85338753f389021439d79dcb1a
tree989a03f8fe00a316ab7c4e5ec2b65d416a2c5200
parent522fa64953e0d3fbb5fa5fd7565121714af2a489
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