]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Handle endianness in read helper for emulated PTW
authorOliver Upton <oupton@kernel.org>
Mon, 24 Nov 2025 19:01:50 +0000 (11:01 -0800)
committerOliver Upton <oupton@kernel.org>
Mon, 1 Dec 2025 08:44:02 +0000 (00:44 -0800)
commitfabf321cba4be0d0dcbb39e97c3deb572fec2f8d
treecfbe8c9dd56659535bd5b6f236456f513746badb
parent977d1bf15c5179276d93468abbc00a224908ff72
KVM: arm64: Handle endianness in read helper for emulated PTW

Implementing FEAT_HAFDBS means adding another descriptor accessor that
needs to deal with the guest-configured endianness. Prepare by moving
the endianness handling into the read accessor and out of the main body
of the S1/S2 PTWs.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Tested-by: Marc Zyngier <maz@kernel.org>
Link: https://msgid.link/20251124190158.177318-9-oupton@kernel.org
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/kvm/at.c
arch/arm64/kvm/nested.c