From: Keir Fraser Subject: Re: Re: how to handle paged hypercall args? Date: Fri, 12 Nov 2010 14:32:16 +0000 Message-ID: References: <4CDD293E0200007800021EDC@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4CDD293E0200007800021EDC@vpn.id2.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: Jan Beulich Cc: Olaf Hering , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 12/11/2010 10:47, "Jan Beulich" wrote: >>>> On 12.11.10 at 11:22, Keir Fraser wrote: >> On 12/11/2010 09:45, "Jan Beulich" wrote: >> >> Beyond that, introducing some transparent mechanisms for sleeping in the >> hypervisor -- mutexes, wait queues, and the like -- is actually fine with >> me. Perhaps this will also help clean up the preemptible page-type-checking >> logic that you had to do some heavy lifting on? > > I'm not sure it would help there - this requires voluntary > preemption rather than synchronization. But perhaps it can be > built on top of this (or results as a side effect). Yes, voluntary preempt can be built from the same bits and pieces very easily. I will provide that too, and I think some simplification to the page-type functions and callers will result. No bad thing! >> I'm happy to help work on the basic mechanism of this, if it's going to be >> useful and widely used. I reckon I could get mutexes and wait queues going >> in a couple of days. This would be the kind of framework that the paging >> mechanisms should then properly be built on. >> >> What do you think? > > Sounds good, and you helping with this will be much appreciated > (Olaf - unless you had plans doing this yourself). Whether it's going > to be widely used I can't tell immediately - for the moment, > overcoming the paging problems seems like the only application. Yeah, I'll get on this. -- Keir > Jan >