[PATCH] KVM: arm64: Improve out-of-order sysreg table diagnostics

Zenghui Yu yuzenghui at huawei.com
Wed Apr 10 20:03:12 PDT 2024


On 2024/4/10 23:25, Marc Zyngier wrote:
> Adding new entries to our system register tables is a painful exercise,
> as we require them to be ordered by Op0,Op1,CRn,CRm,Op2.
> 
> If an entry is misordered, we output an error that indicates the
> pointer to the entry and the number *of the last valid one*.
> 
> That's not very helpful, and would be much better if we printed the
> number of the *offending* entry as well as its name (which is present
> in the vast majority of the cases).
> 
> This makes debugging new additions to the tables much easier.
> 
> Signed-off-by: Marc Zyngier <maz at kernel.org>

Reviewed-by: Zenghui Yu <yuzenghui at huawei.com>

Thanks.



More information about the linux-arm-kernel mailing list