Skip to content

Commit 0f3046c

Browse files
Marc Zyngieroupton
authored andcommitted
KVM: arm64: vgic-v3: Fix ordering of ICH_HCR_EL2
The sysreg tables are supposed to be sorted so that a binary search can easily find them. However, ICH_HCR_EL2 is obviously at the wrong spot. Move it where it belongs. Fixes: 9fe9663 ("KVM: arm64: Expose GICv3 EL2 registers via KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS") Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: Sebastian Ott <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
1 parent f68df3a commit 0f3046c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kvm/vgic-sys-reg-v3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,8 @@ static const struct sys_reg_desc gic_v3_icc_reg_descs[] = {
421421
EL2_REG(ICH_AP1R1_EL2, ich_apr),
422422
EL2_REG(ICH_AP1R2_EL2, ich_apr),
423423
EL2_REG(ICH_AP1R3_EL2, ich_apr),
424-
EL2_REG(ICH_HCR_EL2, ich_reg),
425424
EL2_REG_RO(ICC_SRE_EL2, icc_sre),
425+
EL2_REG(ICH_HCR_EL2, ich_reg),
426426
EL2_REG_RO(ICH_VTR_EL2, ich_vtr),
427427
EL2_REG(ICH_VMCR_EL2, ich_reg),
428428
EL2_REG(ICH_LR0_EL2, ich_reg),

0 commit comments

Comments
 (0)