]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Track presence of SPE/TRBE in kvm_host_data instead of vCPU
authorOliver Upton <oliver.upton@linux.dev>
Thu, 19 Dec 2024 22:41:00 +0000 (14:41 -0800)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 08:49:09 +0000 (08:49 +0000)
commit38131c02a53ff691e4c496d65d2d087a5ed42bbf
tree72a26c1a8ef9ce7e06115ab47276e5dbc3cfe5a7
parent2417218f2f234fd7880fb193ebf3ae5fcccfa29b
KVM: arm64: Track presence of SPE/TRBE in kvm_host_data instead of vCPU

Add flags to kvm_host_data to track if SPE/TRBE is present +
programmable on a per-CPU basis. Set the flags up at init rather than
vcpu_load() as the programmability of these buffers is unlikely to
change.

Reviewed-by: James Clark <james.clark@linaro.org>
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-4-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arm.c
arch/arm64/kvm/debug.c
arch/arm64/kvm/hyp/nvhe/debug-sr.c