]> 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)
commit9f9dd45ba06be422b2a03544fdd06d38fb0e9098
tree06d85dbc61bb0a5d0cbe0046ac5540cacc55410d
parent97f3495d2d29c923149fcb4a02a338de66cd568c
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