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. From: Jan Beulich <[email protected]> (actual patch attached)
Attachment:
linux-2.6.14-nlkd-x86_64-switch_to-fpu.patch
Description: Binary data
- Follow-Ups:
- Re: [PATCH 20/39] NLKD/x86-64 - switch_to() floating point adjustment
- From: Andi Kleen <[email protected]>
- [PATCH 21/39] NLKD/x86-64 - core adjustments
- From: "Jan Beulich" <[email protected]>
- Re: [PATCH 20/39] NLKD/x86-64 - switch_to() floating point adjustment
- References:
- [PATCH 0/39] NLKD - Novell Linux Kernel Debugger
- From: "Jan Beulich" <[email protected]>
- [PATCH 1/39] NLKD - an alternative kallsyms approach
- From: "Jan Beulich" <[email protected]>
- [PATCH 2/39] NLKD - an alternative early ioremap approach
- From: "Jan Beulich" <[email protected]>
- [PATCH 3/39] NLKD - early/late CPU up/down notification
- From: "Jan Beulich" <[email protected]>
- [PATCH 6/39] NLKD - early panic notification
- From: "Jan Beulich" <[email protected]>
- [PATCH 7/39] NLKD - task create/destroy notification
- From: "Jan Beulich" <[email protected]>
- [PATCH 8/39] NLKD - rmmod notification
- From: "Jan Beulich" <[email protected]>
- [PATCH 9/39] NLKD - hotkey notification
- From: "Jan Beulich" <[email protected]>
- [PATCH 10/39] NLKD - console layout change notification
- From: "Jan Beulich" <[email protected]>
- [PATCH 11/39] NLKD - time adjustment
- From: "Jan Beulich" <[email protected]>
- [PATCH 13/39] NLKD/x86-64 - time adjustment
- From: "Jan Beulich" <[email protected]>
- [PATCH 18/39] NLKD/x86-64 - INT1/INT3 handling changes
- From: "Jan Beulich" <[email protected]>
- [PATCH 19/39] NLKD/x86-64 - stack-pointer-invalid markers
- From: "Jan Beulich" <[email protected]>
- [PATCH 0/39] NLKD - Novell Linux Kernel Debugger
- Prev by Date: [PATCH 06/16] readahead: call scheme
- Next by Date: [PATCH 04/16] radix-tree: look-aside cache
- Previous by thread: [PATCH 19/39] NLKD/x86-64 - stack-pointer-invalid markers
- Next by thread: [PATCH 21/39] NLKD/x86-64 - core adjustments
- Index(es):