]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Fold DBGxVR/DBGxCR accessors into common set
authorOliver Upton <oliver.upton@linux.dev>
Thu, 19 Dec 2024 22:41:15 +0000 (14:41 -0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 09:04:17 +0000 (09:04 +0000)
commit3ce9f3357e9e099f02feaa002769eb99ef1138cd
treee80f7396d4cd378fdd80d636043a3c5c074033e6
parent8c02c2bbd64375e603df79449f0eb2c57e1a597c
KVM: arm64: Fold DBGxVR/DBGxCR accessors into common set

There is a nauseating amount of boilerplate for accessing the
breakpoint and watchpoint registers. Fold everything together into a
single set of accessors and select the right storage based on the sysreg
encoding.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20241219224116.3941496-19-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c