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:01:04 +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 08:44, "Keir Fraser" 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