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:01:04 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 12 Jul 2007 00:55:40 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2BB9A88.AB08%keir@xxxxxxxxxxxxx>
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+SC7WIGwLHO6q6ABLR0tAABjWo8AAFyyMWAACQPss=
Thread-topic: [Xen-devel] [PATCH 6/10] Allow vcpu to pause self
User-agent: Microsoft-Entourage/11.3.3.061214
On 12/7/07 08:44, "Keir Fraser" <keir@xxxxxxxxxxxxx> wrote:

> How about doing the whole suspend/resume in dom0/vcpu0 context? Why switch
> to a softirq at all? You can force dom0/vcpu0 onto cpu0 temporarily by
> wrapping the suspend/resume in a pair of calls to vcpu_set_affinity().

You may need to temporarily rewrite ->schedule_tail as well, to regain
control after the scheduling softirq.

 -- Keir


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