From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 1/2] SCHED: Generic hooks for trapping task preemption Date: Thu, 12 Jul 2007 08:48:02 +0300 Message-ID: <4695C092.4070609@qumranet.com> References: <11841693332609-git-send-email-avi@qumranet.com> <11841693333159-git-send-email-avi@qumranet.com> <1184217293.6005.754.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Rusty Russell Return-path: In-Reply-To: <1184217293.6005.754.camel-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org Rusty Russell wrote: > On Wed, 2007-07-11 at 18:55 +0300, Avi Kivity wrote: > >> + fire_sched_out_preempt_hooks(current); >> prepare_lock_switch(rq, next); >> prepare_arch_switch(next); >> > > Damn, I just found a use for this in lguest. > > Any chance of handing "next" to the sched_out hook so we can optimize > the lguest <-> lguest switch? > > FYI, lguest turns off PGE globally when you load the module, because > turning it off on each guest entry v. slow. With these hooks I can be > far smarter... > Sure thang. Will be there in the next version. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- 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/