]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Don't use __vcpu_sys_reg() to get the address of a sysreg
authorMarc Zyngier <maz@kernel.org>
Tue, 3 Jun 2025 07:08:23 +0000 (08:08 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 5 Jun 2025 13:18:01 +0000 (14:18 +0100)
commitb61fae4ee120f337b8700dff43b2fd639f3bf6a5
tree6b04a95260a1c9c534cb88222a8d98c813d02cae
parent8800b7c4bbede3cd40831726d3f98e8080baf4df
KVM: arm64: Don't use __vcpu_sys_reg() to get the address of a sysreg

We are about to prevent the use of __vcpu_sys_reg() as a lvalue,
and getting the address of a rvalue is not a thing.

Update the couple of places where we do this to use the __ctxt_sys_reg()
accessor, which return the address of a register.

Reviewed-by: Miguel Luis <miguel.luis@oracle.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20250603070824.1192795-4-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/arch_timer.c
arch/arm64/kvm/fpsimd.c