[PATCH v2 02/20] KVM: arm64: Extract number of sys_reg_desc into a constant
Marc Zyngier
maz at kernel.org
Tue Sep 1 00:48:50 PDT 2026
On Mon, 31 Aug 2026 15:55:17 +0100,
Steffen Eiden <seiden at linux.ibm.com> wrote:
>
> Define the constant `num_sys_reg_descs` which stores the number of
> elements in the sys_reg_descs array. Replace all occurrences of
> ARRAY_SIZE(sys_reg_descs) with the new constant.
>
> This refactoring eases the integration of handling system registers for
> arm on s390.
How? What is so different in the way you are handling the sysreg array
that you need some arbitrary constant that is not the array size? Why
is this the only array you care about? Why not the sys_insn_descs
array, for example?
It feels like you are papering over some other design issue, and I'd
like to understand that.
Thanks,
M.
--
Jazz isn't dead. It just smells funny.
More information about the linux-arm-kernel
mailing list