From: John Levon Subject: Re: credit scheduler and HYPERVISOR_yield() Date: Tue, 9 Oct 2007 02:42:22 +0100 Message-ID: <20071009014222.GA4206@totally.trollied.org.uk> References: <20071008234118.GA1396@totally.trollied.org.uk> <200710090123.l991NgkI007049@fjmscan501.ms.jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <200710090123.l991NgkI007049@fjmscan501.ms.jp.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Atsushi SAKAI Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Oct 09, 2007 at 10:23:19AM +0900, Atsushi SAKAI wrote: > Do you find any problem in your test (by HYPERVISOR_yield())? > Please describe your problem at first. The problem is over semantics of HYPERVISOR_yield(). We use this after doing an IPI when we want to wait for the other CPU to respond before continuing. If we're just going into the hypervisor and straight back out again until our credit expires, then it's clearly sub-optimal for this case. I haven't looked hard at the implementation, or even verified this behaviour, but it does look like that. regards john