Thread (22 messages) flat view 22 messages, 4 authors, 2021-11-05

Re: [PATCH v2 1/6] KVM: arm64: Correctly treat writes to OSLSR_EL1 as undefined

From: Reiji Watanabe <hidden>
Date: 2021-11-04 02:42:10
Also in: kvm, kvmarm

On Tue, Nov 2, 2021 at 2:47 AM Oliver Upton [off-list ref] wrote:
Any valid implementation of the architecture should generate an
undefined exception for writes to a read-only register, such as
OSLSR_EL1. Nonetheless, the KVM handler actually implements write-ignore
behavior.

Align the trap handler for OSLSR_EL1 with hardware behavior. If such a
write ever traps to EL2, inject an undef into the guest and print a
warning.

Signed-off-by: Oliver Upton <redacted>
Reviewed-by: Reiji Watanabe <redacted>

Thanks,
Reiji

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help