]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: arm64: Don't hijack guest context MDSCR_EL1
authorOliver Upton <oliver.upton@linux.dev>
Thu, 19 Dec 2024 22:41:11 +0000 (14:41 -0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 09:02:51 +0000 (09:02 +0000)
commit4ad3a0b87f2ec4714fdfa6bd5de57b4c30e15753
tree20adfeb8016ea10554c953c485a698e61d92bee4
parent75a5fbaf6623328d3ac69719145c2247f7b4e299
KVM: arm64: Don't hijack guest context MDSCR_EL1

Stealing MDSCR_EL1 in the guest's kvm_cpu_context for external debugging
is rather gross. Just add a field for this instead and let the context
switch code pick the correct one based on the debug owner.

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-15-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/debug.c
arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h