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] Re: how to handle paged hypercall args?

To: Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] Re: how to handle paged hypercall args?
From: Keir Fraser <keir@xxxxxxx>
Date: Fri, 12 Nov 2010 14:32:16 +0000
Cc: Olaf Hering <olaf@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 12 Nov 2010 06:33:35 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:user-agent:date :subject:from:to:cc:message-id:thread-topic:thread-index:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=7Hyug/pJIDBA59p35JwQcPr08kCiG+AC8nlVWYosN6U=; b=Frp34oZ9gdAJ67EIXwRe8ttFdP94gRzFhgwa5Z7VLyWYGzN/O41Govq8XhY5Am/jxo 3Uj51eZ+BE8GZIVUrtCAf9Qo06nZ5NXhIryMktYq+9Gz46P2uNZ7Ba/sPhTmlzp9c1uh rWG/RtixTB9OdCf2LKJGfT0Bm/0nMTGXTW12M=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=cYZ0tIbzvdbjx1lwB4lJXOF2QnK1ZspAdyUKfB5plLGJCtbs6022QCHpldn73msSS3 Np5dIyZj0YrKP7mLVzzhONu8bpmWRel5UT3HX9n7XQI3DZj+11BUha7X9ZKWUwAjTThD CVatUd14zp8hcELj6657ADgdn9xrUsV1o30eE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CDD293E0200007800021EDC@xxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcuCdmc9aH7QQ4KcMU2Xp7JB9EzHig==
Thread-topic: [Xen-devel] Re: how to handle paged hypercall args?
User-agent: Microsoft-Entourage/12.27.0.100910
On 12/11/2010 10:47, "Jan Beulich" <JBeulich@xxxxxxxxxx> wrote:

>>>> On 12.11.10 at 11:22, Keir Fraser <keir@xxxxxxx> wrote:
>> On 12/11/2010 09:45, "Jan Beulich" <JBeulich@xxxxxxxxxx> 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
> 



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