Skip to content

Commit c948a0a

Browse files
author
Marc Zyngier
committed
KVM: arm64: nv: Add trap description for SPSR_EL2 and ELR_EL2
Having carved a hole for SP_EL1, we are now missing the entries for SPSR_EL2 and ELR_EL2. Add them back. Reported-by: Miguel Luis <miguel.luis@oracle.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent 6004698 commit c948a0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/arm64/kvm/emulate-nested.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,8 @@ static const struct encoding_to_trap_config encoding_to_cgt[] __initconst = {
651651
SR_RANGE_TRAP(sys_reg(3, 4, 0, 0, 0),
652652
sys_reg(3, 4, 3, 15, 7), CGT_HCR_NV),
653653
/* Skip the SP_EL1 encoding... */
654+
SR_TRAP(SYS_SPSR_EL2, CGT_HCR_NV),
655+
SR_TRAP(SYS_ELR_EL2, CGT_HCR_NV),
654656
SR_RANGE_TRAP(sys_reg(3, 4, 4, 1, 1),
655657
sys_reg(3, 4, 10, 15, 7), CGT_HCR_NV),
656658
SR_RANGE_TRAP(sys_reg(3, 4, 12, 0, 0),

0 commit comments

Comments
 (0)