Re: [PATCH 20/39] NLKD/x86-64 - switch_to() floating point adjustment

From: Andi Kleen
Date: Thu Nov 10 2005 - 09:01:16 EST


On Wednesday 09 November 2005 15:15, Jan Beulich wrote:
> Touching of the floating point state in a kernel debugger must be
> NMI-safe, specifically math_state_restore() must be able to deal with
> being called out of an NMI context. In order to do that reliably, the
> context switch code must take care to not leave a window open where
> the current task's TS_USEDFPU flag and CR0.TS could get out of sync.

Didn't we agree earlier on moving unlazy_fpu() down instead?

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/