KVM: arm64: Promote guest ownership for DBGxVR/DBGxCR reads
authorOliver Upton <oliver.upton@linux.dev>
Thu, 19 Dec 2024 22:41:16 +0000 (14:41 -0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 09:04:19 +0000 (09:04 +0000)
commitc4a6ed85455979ef3fbadc2f1bdf18734b0ecea6
treef98955bf0ea1f86f8956182ce42330354a2ae820
parent3ce9f3357e9e099f02feaa002769eb99ef1138cd
KVM: arm64: Promote guest ownership for DBGxVR/DBGxCR reads

Only yielding control of the debug registers for writes is a bit silly,
unless of course you're a fan of pointless traps. Give control of the
debug registers to the guest upon the first access, regardless of
direction.

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