Home
last modified time | relevance | path

Searched hist:"4 c181e3d352e9280c84fb4b4c7a8940ce005374e" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/arm64/kvm/
H A Dfpsimd.cdiff 4c181e3d352e9280c84fb4b4c7a8940ce005374e Tue Mar 07 11:37:14 CST 2023 Mark Brown <broonie@kernel.org> KVM: arm64: Document check for TIF_FOREIGN_FPSTATE

In kvm_arch_vcpu_load_fp() we unconditionally set the current FP state
to FP_STATE_HOST_OWNED, this will be overridden to FP_STATE_NONE if
TIF_FOREIGN_FPSTATE is set but the check is deferred until
kvm_arch_vcpu_ctxflush_fp() where we are no longer preemptable. Add a
comment to this effect to help avoid people being concerned about the
lack of a check and discover where the check is done.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221214-kvm-arm64-sme-context-switch-v2-1-57ba0082e9ff@kernel.org