Re: [PATCH v2 02/20] KVM: arm64: Extract number of sys_reg_desc into a constant
From: Marc Zyngier
Date: Tue Sep 01 2026 - 03:52:35 EST
On Mon, 31 Aug 2026 15:55:17 +0100,
Steffen Eiden <seiden@xxxxxxxxxxxxx> 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.