[PATCH] KVM: arm64: Fix kvm_vcpu_{set,is}_be() to deal with EL2 state

Oliver Upton oliver.upton at linux.dev
Tue Sep 16 22:21:09 PDT 2025


On Tue, Sep 16, 2025 at 05:11:03PM +0100, Marc Zyngier wrote:
> Nobody really cares about BE, but KVM currently only deals with
> SCTLR_EL1 when evaluating or setting the endianness in PSCI,
> meaning that we evaluate whatever the L2 state has been at some point.
> 
> Teach these primitives about SCTLR_EL2, and forget about BE...
> 
> Signed-off-by: Marc Zyngier <maz at kernel.org>

You know, I was about to say "don't we need to sanitise this?" although
that seems to already be in place. Nice.

Reviewed-by: Oliver Upton <oliver.upton at linux.dev>

Thanks,
Oliver



More information about the linux-arm-kernel mailing list