]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: Add endian casting to kvm_swap_s[12]_desc()
authorMarc Zyngier <maz@kernel.org>
Tue, 25 Nov 2025 20:48:48 +0000 (20:48 +0000)
committerOliver Upton <oupton@kernel.org>
Mon, 1 Dec 2025 08:44:02 +0000 (00:44 -0800)
commitb0fc8329ec98ea891a5e47821db6aee1d564bff6
treecec058ee416cb9a80aa583051a3abd536025b3d5
parent36fe022f884bb936d911a0d2e93819aba11daceb
KVM: arm64: Add endian casting to kvm_swap_s[12]_desc()

Keep sparse quiet by explicitly casting endianness conversion
when swapping S1 and S2 descriptors.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202511260246.JQDGsQKa-lkp@intel.com/
Closes: https://lore.kernel.org/oe-kbuild-all/202511260344.9XehvH5Q-lkp@intel.com/
Fixes: c59ca4b5b0c3f ("KVM: arm64: Implement HW access flag management in stage-1 SW PTW")
Fixes: 39db933ba67f8 ("KVM: arm64: nv: Implement HW access flag management in stage-2 SW PTW")
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://msgid.link/20251125204848.1136383-1-maz@kernel.org
Signed-off-by: Oliver Upton <oupton@kernel.org>
arch/arm64/kvm/at.c
arch/arm64/kvm/nested.c