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

Reiji Watanabe reijiw at google.com
Wed Nov 3 19:40:25 PDT 2021


On Tue, Nov 2, 2021 at 2:47 AM Oliver Upton <oupton at google.com> 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 <oupton at google.com>

Reviewed-by: Reiji Watanabe <reijiw at google.com>

Thanks,
Reiji



More information about the linux-arm-kernel mailing list