KVM: arm64: Exclude host_debug_data from vcpu_arch
authorMarc Zyngier <maz@kernel.org>
Mon, 26 Feb 2024 15:58:46 +0000 (15:58 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 12 Apr 2024 12:57:41 +0000 (13:57 +0100)
commit6db55734ec4008da39e10d2fffa913fd9751ccaa
tree18776ae3cb251e7206c2f68de1e72a839f532479
parent87f842c6c6543cf0dd66161fdf4b62cec804479b
KVM: arm64: Exclude host_debug_data from vcpu_arch

Keeping host_debug_state on a per-vcpu basis is completely
pointless. The lifetime of this data is only that of the inner
run-loop, which means it is never accessed outside of the core
EL2 code.

Move the structure into kvm_host_data, and save over 500 bytes
per vcpu.

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/hyp/include/hyp/debug-sr.h
arch/arm64/kvm/hyp/nvhe/debug-sr.c