KVM: arm64: Introduce flag shadowing TIF_FOREIGN_FPSTATE
authorMarc Zyngier <maz@kernel.org>
Thu, 21 Oct 2021 13:10:35 +0000 (14:10 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 22 Nov 2021 16:01:39 +0000 (16:01 +0000)
commitaf9a0e21d817f40595aa629de32d3bd96582abef
treefab798e1543e59ab9275a9b6e3916c6a8dca643b
parente66425fc9ba33e9716d6e7c6bc78bb62f981d4df
KVM: arm64: Introduce flag shadowing TIF_FOREIGN_FPSTATE

We currently have to maintain a mapping the thread_info structure
at EL2 in order to be able to check the TIF_FOREIGN_FPSTATE flag.

In order to eventually get rid of this, start with a vcpu flag that
shadows the thread flag on each entry into the hypervisor.

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/arm.c
arch/arm64/kvm/fpsimd.c
arch/arm64/kvm/hyp/include/hyp/switch.h