[PATCH v6 07/33] KVM: arm64: Access elements of vcpu_gp_regs individually

Marc Zyngier maz at kernel.org
Thu Aug 13 02:41:13 PDT 2026


On Wed, 12 Aug 2026 16:36:03 +0100,
Steffen Eiden <seiden at linux.ibm.com> wrote:
> 
> While for arm64 the members of vcpu_gp_regs are allocated continuous
> this is not necessarily true for other architectures implementing ARM.
> 
> Let vcpu_gp_regs() no longer return the address of the user_pt_regs in
> the vcpu context but the address of the gp-register array field in the
> user_pt_reg struct. Note, this change semantically excludes pc from the
> GPRs.
> 
> No functional change.
> 
> Co-developed-by: Nina Schoetterl-Glausch <nsg at linux.ibm.com>
> Signed-off-by: Nina Schoetterl-Glausch <nsg at linux.ibm.com>
> Signed-off-by: Steffen Eiden <seiden at linux.ibm.com>

Reviewed-by: Marc Zyngier <maz at kernel.org>

	M.

-- 
Without deviation from the norm, progress is not possible.



More information about the linux-arm-kernel mailing list