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: Olaf Hering <olaf@xxxxxxxxx>
Subject: Re: [Xen-devel] Re: how to handle paged hypercall args?
From: Keir Fraser <keir@xxxxxxx>
Date: Thu, 18 Nov 2010 12:33:19 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Jan Beulich <JBeulich@xxxxxxxxxx>
Delivery-date: Thu, 18 Nov 2010 04:34:14 -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=N4AqZkfxnwsSw3hcdzAz9uxrrQaMX8bMKrlKLAD0ouQ=; b=xgStFerItDBcuhM+Vnnmf+Y2HSE4ZUVix5XXhjhT/63JvdFmHWeLB89tP6cXNrOKj+ z+TVgCVm1Ht/ONfpsAo0lDR9CVjX1UfOrmWrtdv42jrIdLfrjNNVARfi+f3U9WEXhH9d OwWfbQN2iVSi/JljV3n4KpToio8BrSg9s1kD0=
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=EwrlajZiGou+sYyzJZJjMf8ujXcZFu01qrFvQxl+dCo+mgE7p1MH+zTtd9blWO7qyd T6rYz3j+1++syGUSpjkfLbMI8k2qvRHiYQb9Yu4dI2j/fF06TWGb0+3Vgkb8FRb1xJOi H92l0EHTu5I+YDq4CnLp+Hhh7GzFeFlwM9C18=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C909B8B7.2817A%keir@xxxxxxx>
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: AcuGd8S6wj5FFyIaQk24t8qYIZ3cEgApQMBU
Thread-topic: [Xen-devel] Re: how to handle paged hypercall args?
User-agent: Microsoft-Entourage/12.27.0.100910
On 17/11/2010 16:52, "Keir Fraser" <keir@xxxxxxx> wrote:

> On 15/11/2010 13:12, "Olaf Hering" <olaf@xxxxxxxxx> wrote:
> 
>> Sorry for being late here.
>> 
>> I'm glad you volunteer for this task.
> 
> The basis of what you need is checked in as xen-unstable:22396. You can
> include <xen/wait.h> and you get an interface like a very simplified version
> of Linux waitqueues. There are still some details to be worked out but it
> basically works as-is and you can start using it now.
> 
> The one big cleanup/audit we will need is that all callers of __hvm_copy()
> (which ends up being all HVM guest callers of the copy_to/from_guest*
> macros) must not hold any locks. This is because you are going to modify
> __hvm_copy() such that it may sleep. Probably you should
> ASSERT(!in_atomic()) at the top of __hvm_copy(), and go from there. :-)

I've done something along these lines now as xen-unstable:22402. It actually
seems to work okay! So you can go ahead and use waitqueues in __hvm_copy()
now.

 -- Keir

>  -- Keir
> 
>> 
>> Olaf
>> 
> 
> 



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

<Prev in Thread] Current Thread [Next in Thread>