WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH 6/10] Allow vcpu to pause self

To: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 6/10] Allow vcpu to pause self
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Thu, 12 Jul 2007 09:30:23 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 12 Jul 2007 01:28:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <D470B4E54465E3469E2ABBC5AFAC390F013B1FD3@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Ace4wFEyWBrDMwUBRbudwW+SC7WIGwLHO6q6ABLR0tAABjWo8AAFyyMWAACQPssAAEOGMAAAwpfE
Thread-topic: [Xen-devel] [PATCH 6/10] Allow vcpu to pause self
User-agent: Microsoft-Entourage/11.3.3.061214
On 12/7/07 09:23, "Tian, Kevin" <kevin.tian@xxxxxxxxx> 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel