[RFC PATCH] arm64: KVM: remove fpsimd save/restore from the world switch

Catalin Marinas catalin.marinas at arm.com
Fri Apr 10 03:20:45 PDT 2015


On Fri, Apr 10, 2015 at 11:01:36AM +0100, Peter Maydell wrote:
> On 10 April 2015 at 10:11, Marc Zyngier <marc.zyngier at arm.com> wrote:
> > I did some experimentations on arm64 a long while ago (see the
> > kvm-arm64/lazy-fp branch in my tree), and it wasn't that great,
> > apparently because aarch64 userspace tends to be much more FP happy than
> > aarch32, but I'm not completely sure about it.
> 
> Was that with the buggy version of the toolchain that had
> incorrect costs and so was much more inclined to spill
> integer values into the FPU than it should have been?
> It might be worth retesting with a freshly compiled
> userspace some day...

It really depends on what you mean by userspace (which benchmarks you
use). If for example you only care about Javascript heavy web
applications, all numbers are 64-bit floats. But I think it's worth
investigating.

We could also make it smarter and mark some tasks as FP heavy for a
limited time to avoid faults.

-- 
Catalin



More information about the linux-arm-kernel mailing list