]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit384205fd84ca28ba802e3e3250fda7cca2b6a336
tree6040af5c3448a6e01895c2af522b5b51c1f35e82
parent139a8ede6e924f2f815ae97dc190f1ee26643e45
KVM: selftests: get-reg-list: Add KVM_REG_ARM_FW_REG(3)

When testing a kernel with commit 30b31c42b05d ("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