KVM: arm64: Exclude host_fpsimd_state pointer from kvm_vcpu_arch
authorMarc Zyngier <maz@kernel.org>
Fri, 1 Mar 2024 12:06:44 +0000 (12:06 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 12 Apr 2024 12:58:31 +0000 (13:58 +0100)
commit51e09b5572d665645ce394f94f24a7d6ec32bda9
tree48d21b4d4e09cf2844a4ca2dba20244e65ca0a8c
parent4bacd723705a6b6c8386daf3d5148aca66135f3c
KVM: arm64: Exclude host_fpsimd_state pointer from kvm_vcpu_arch

As the name of the field indicates, host_fpsimd_state is strictly
a host piece of data, and we reset this pointer on each PID change.

So let's move it where it belongs, and set it at load-time. Although
this is slightly more often, it is a well defined life-cycle which
matches other pieces of data.

Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/fpsimd.c
arch/arm64/kvm/hyp/include/hyp/switch.h
arch/arm64/kvm/hyp/nvhe/hyp-main.c