This adds a general mechanism whereby a task can request the scheduler to
notify it whenever it is preempted or scheduled back in. This allows the
task to swap any special-purpose registers like the fpu or Intel's VT
registers.
Signed-off-by: Avi Kivity <[email protected]>
[ [email protected]: fixes, cleanups ]
Signed-off-by: Ingo Molnar <[email protected]>