]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Move the handling of !FP outside of the fast path
authorMarc Zyngier <maz@kernel.org>
Wed, 8 Jun 2022 13:22:31 +0000 (14:22 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 29 Jun 2022 09:23:56 +0000 (10:23 +0100)
commit7a83e3f7d068770f8029f6cc3408af32342df8cd
tree06d85dbc61bb0a5d0cbe0046ac5540cacc55410d
parentfd1f22b2332ad73de6c722c5a788fe6528d9208c
KVM: arm64: Move the handling of !FP outside of the fast path

We currently start by assuming that the host owns the FP unit
at load time, then check again whether this is the case as
we are about to run. Only at this point do we account for the
fact that there is a (vanishingly small) chance that we're running
on a system without a FPSIMD unit (yes, this is madness).

We can actually move this FPSIMD check as early as load-time,
and drop the check at run time.

No intended change in behaviour.

Suggested-by: Reiji Watanabe <reijiw@google.com>
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/arm.c
arch/arm64/kvm/fpsimd.c