]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Select debug state to save/restore based on debug owner
authorOliver Upton <oliver.upton@linux.dev>
Thu, 19 Dec 2024 22:41:05 +0000 (14:41 -0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 09:01:25 +0000 (09:01 +0000)
commit58db67e9accca6d146916203a943568f63754697
tree8081a9f6c6e5abb2ebd8decebb2806b0994552ae
parent4cefbec97d80247083b84ccc86e32a78c119f705
KVM: arm64: Select debug state to save/restore based on debug owner

Select the set of debug registers to use based on the owner rather than
relying on debug_ptr. Besides the code cleanup, this allows us to
eliminate a couple instances kern_hyp_va() as well.

Tested-by: James Clark <james.clark@linaro.org>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20241219224116.3941496-9-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hyp/include/hyp/debug-sr.h