KVM: arm64: Exclude FP ownership from kvm_vcpu_arch
authorMarc Zyngier <maz@kernel.org>
Fri, 1 Mar 2024 17:42:31 +0000 (17:42 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 12 Apr 2024 12:58:59 +0000 (13:58 +0100)
commit5294afdbf45aced5295fe5941c58b40c41c23800
treeb4a85c3bf837fea6eb4ad2214dbf2b90045c5066
parent51e09b5572d665645ce394f94f24a7d6ec32bda9
KVM: arm64: Exclude FP ownership from kvm_vcpu_arch

In retrospect, it is fairly obvious that the FP state ownership
is only meaningful for a given CPU, and that locating this
information in the vcpu was just a mistake.

Move the ownership tracking into the host data structure, and
rename it from fp_state to fp_owner, which is a better description
(name suggested by Mark Brown).

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