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 16:13:55 +0300 Message-ID: <46A74C93.7080705@qumranet.com> References: <11853673872732-git-send-email-avi@qumranet.com> <11853673871109-git-send-email-avi@qumranet.com> <20070725124911.GC6841@elte.hu> <20070725125220.GA8914@elte.hu> 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, Andi Kleen To: Ingo Molnar Return-path: In-Reply-To: <20070725125220.GA8914-X9Un+BFzKDI@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 Ingo Molnar wrote: > * Ingo Molnar 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? >> > > note: i've done a hook -> notifier rename - 'hook' is way too generic > sounding and also slightly loaded. (updated patch below) > > Okay, both i386 and x86_64 are happy (with the missing 'next' argument added, but with the old hook name). -- Do not meddle in the internals of kernels, for they are subtle and quick to panic. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/