From: Keir Fraser Subject: Re: vcpu_pause Date: Mon, 05 Mar 2007 08:09:53 +0000 Message-ID: References: <45EAF9DA.E57C.0030.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <45EAF9DA.E57C.0030.0@novell.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: Ky Srinivasan , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 4/3/07 23:02, "Ky Srinivasan" wrote: > Sorry for not being precise in my earlier email. Within an arbitrary domain, I > was wondering how we were preventing potential deadlocks between vcpus that > were attempting to pause each other; perhaps a higher level serialization lock > could solve this problem. I was looking at using vcpu_pause to get a stable > state for a vcpu in a domu context. Is this not a sanctioned usage of > vcpu_pause. Oh, I see. Yes, there's a reason there's no getvcpucontext() that a domU can run on itself: it wasn't clear to me how useful it would be, and it's a bit of a pain to implement in a way that avoids deadlock possibilities. But if there's a good reason for it then we can definitely work out a way to support it safely. -- Keir