From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [PATCH 6/10] Allow vcpu to pause self Date: Thu, 12 Jul 2007 09:30:23 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Tian, Kevin" Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 12/7/07 09:23, "Tian, Kevin" wrote: > Yes, schedule_tail has to be overridden with a special stub to continue > with previous suspend flow. Maybe we can make it generic, for example, > to create a new vcpu_migrate_and_continue, which basically: > - save continue point to vcpu structure > - override schedule_tail with a helper function > - switch out > Then that helper function jumps to continue point on new processor. At > finish, reset stack and recover schedule_tail. > > Is it sounds like the way? I don't mind whether you opn code this in acpi/power.c, or add a new interface function. Whichever works out best. -- Keir