From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 1/3] SCHED: Generic hooks for trapping task preemption Date: Wed, 25 Jul 2007 15:51:10 +0300 Message-ID: <46A7473E.6010807@qumranet.com> References: <11853673872732-git-send-email-avi@qumranet.com> <11853673871109-git-send-email-avi@qumranet.com> <20070725124911.GC6841@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, shaohua.li@intel.com, rusty@rustcorp.com.au, Andi Kleen To: Ingo Molnar Return-path: In-Reply-To: <20070725124911.GC6841@elte.hu> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Ingo Molnar wrote: > * Avi Kivity wrote: > > >> 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. >> > > ok, this looks very clean, i've added it to my scheduler tree. You've > tested this with KVM, on both 32-bit and 64-bit, correct? > > The previous iteration. I'll do a run now to make sure it hasn't regressed. Note that only the first patch will apply to -linus. The others depend on a small change that isn't there. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.