]> Gentwo Git Trees - linux/.git/commit
KVM: arm64: Fix kvm_vcpu_{set,is}_be() to deal with EL2 state
authorMarc Zyngier <maz@kernel.org>
Tue, 16 Sep 2025 16:11:03 +0000 (17:11 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 17 Sep 2025 16:26:57 +0000 (17:26 +0100)
commit6515c612e79949b17ef4b8c4180c07bbeaf01e4d
tree6cd416a33050ff53dbab3ef07d9c07a83599d45d
parent597f41e1743882db32f99dde062adbec29104586
KVM: arm64: Fix kvm_vcpu_{set,is}_be() to deal with EL2 state

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...

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_emulate.h