LWN.net Logo

Scheduler preemption hooks, #2

From:  Avi Kivity <avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org>
To:  kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject:  [PATCH 0/2][RFC] Scheduler preemption hooks, #2
Date:  Wed, 11 Jul 2007 18:55:31 +0300
Cc:  linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Archive-link:  Article, Thread

I redid the the scheduler preemption patches based on Rusty's feedback.
Things do look much cleaner this time around.

Changes:
- split into core and kvm parts
- incorporated Shaohua Li's fix
- each task now has a list of independently managed preemption hooks
- move preempt hook pointer to a hot cache line within task_struct

I haven't made kernel_fpu_begin()/kernel_fpu_end() preemptible as promised,
because (a) we need to find a place to put the fpu state, and (b) we should
get better performance by reusing cr0.ts anyway.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Copyright © 2007, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds