KVM: selftests: get-reg-list: Add KVM_REG_ARM_FW_REG(3)
authorAndrew Jones <drjones@redhat.com>
Wed, 16 Mar 2022 12:51:29 +0000 (13:51 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 7 Apr 2022 07:45:01 +0000 (08:45 +0100)
commit02de9331c4d0c6bddac9c5fa66d91f70adf8612b
tree6040af5c3448a6e01895c2af522b5b51c1f35e82
parent2f5d27e6cf14efe652748bad89ee529ed5a5d577
KVM: selftests: get-reg-list: Add KVM_REG_ARM_FW_REG(3)

When testing a kernel with commit a5905d6af492 ("KVM: arm64:
Allow SMCCC_ARCH_WORKAROUND_3 to be discovered and migrated")
get-reg-list output

vregs: Number blessed registers:   234
vregs: Number registers:           238

vregs: There are 1 new registers.
Consider adding them to the blessed reg list with the following lines:

KVM_REG_ARM_FW_REG(3),

vregs: PASS
...

That output inspired two changes: 1) add the new register to the
blessed list and 2) explain why "Number registers" is actually four
larger than "Number blessed registers" (on the system used for
testing), even though only one register is being stated as new.
The reason is that some registers are host dependent and they get
filtered out when comparing with the blessed list. The system
used for the test apparently had three filtered registers.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220316125129.392128-1-drjones@redhat.com
tools/testing/selftests/kvm/aarch64/get-reg-list.c