diff options
author | Dave Martin <Dave.Martin@arm.com> | 2018-05-02 14:18:02 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2018-05-25 12:28:31 +0100 |
commit | cf412b0070221032c02c4564cd11dc83238b2ad2 (patch) | |
tree | 7f5f01f1ab575c0bae10eaddee73e93447413850 /arch/xtensa/configs | |
parent | 7846b3119e24fe8d726535d6aa7489253797700c (diff) | |
download | op-kernel-dev-cf412b0070221032c02c4564cd11dc83238b2ad2.zip op-kernel-dev-cf412b0070221032c02c4564cd11dc83238b2ad2.tar.gz |
KVM: arm64: Invoke FPSIMD context switch trap from C
The conversion of the FPSIMD context switch trap code to C has added
some overhead to calling it, due to the need to save registers that
the procedure call standard defines as caller-saved.
So, perhaps it is no longer worth invoking this trap handler quite
so early.
Instead, we can invoke it from fixup_guest_exit(), with little
likelihood of increasing the overhead much further.
As a convenience, this patch gives __hyp_switch_fpsimd() the same
return semantics fixup_guest_exit(). For now there is no
possibility of a spurious FPSIMD trap, so the function always
returns true, but this allows it to be tail-called with a single
return statement.
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/xtensa/configs')
0 files changed, 0 insertions, 0 deletions