KVM: arm64: Print emulated register table name when it is unsorted
authorAlexandru Elisei <alexandru.elisei@arm.com>
Thu, 28 Apr 2022 10:34:05 +0000 (11:34 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 4 May 2022 16:52:56 +0000 (17:52 +0100)
commit325031d4f39cfb1adf41708c1329e60b9abfbdac
tree3ab90447072384260b743b2834e1c72650f87f97
parentf1f0c0cfeaa7c10eb536d9919bf3902af0e17bce
KVM: arm64: Print emulated register table name when it is unsorted

When a sysreg table entry is out-of-order, KVM attempts to print the
address of the table:

[    0.143911] kvm [1]: sys_reg table (____ptrval____) out of order (1)

Printing the name of the table instead of a pointer is more helpful in this
case. The message has also been slightly tweaked to be point out the
offending entry (and to match the missing reset error message):

[    0.143891] kvm [1]: sys_reg table sys_reg_descs+0x50/0x7490 entry 1 out of order

Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220428103405.70884-3-alexandru.elisei@arm.com
arch/arm64/kvm/sys_regs.c