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>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Re: how to handle paged hypercall args?
From: Keir Fraser <keir@xxxxxxx>
Date: Thu, 11 Nov 2010 20:08:59 +0000
Cc:
Delivery-date: Thu, 11 Nov 2010 12:09:54 -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:message-id:thread-topic:thread-index:in-reply-to :mime-version:content-type:content-transfer-encoding; bh=oWkHPWgBCrbxYl/h4RGe0lgCpnpOKIlpPa0JECo0W7k=; b=LpB82K+HC9n2joxMoF8tdXgcyX3kFG9+o71JYOnblMSFZNWeA/K8b6kiOOfnDfFMPZ AAj8ugeyezwTiwvCMgWA6vUcW4/2ZLhs+skw+bwn7nfQE/pj6uv1hBWJgORPMFkIU22D NHkMcZcScLt2J3xy0kl4OyK1+7qjECyrKEQMQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=vBXLmQvUTFSdsfBNZANcQmh6x+ZHFF0xuGuhykvW45E1vNN9qRoNya/f6w56ryovcK RwsQDrQrWt7Dw1cjD7xG60CGd2W97CmBwXrfetUdh3TFjkWSMp9d0rYo7MggvC8uOYeo d7CxxuEgr1NuhAuny2WQsKDSqLesiwrYfYrAs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20101111143338.GA27721@xxxxxxxxx>
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: AcuB3EbAlVSSQEuiPEKTR+Zuv2UIuQ==
Thread-topic: [Xen-devel] Re: how to handle paged hypercall args?
User-agent: Microsoft-Entourage/12.27.0.100910
On 11/11/2010 14:33, "Olaf Hering" <olaf@xxxxxxxxx> wrote:

> So is that an acceptable way to deal with the HVMCOPY_gfn_paged_out
> return codes from __hvm_copy?
> Or should I explore some different way, like spinning there and possible
> let other threads-of-execution make progress while waiting for the gfns
> to come back?

You can't just spin because Xen is not preemptible. If it were a single CPU
system for example, no other thread would ever run again. You have to 'spin'
via a preemptible loop that returns to guest context and then back into the
hypercall. Which appears to be what you're doing.

 -- Keir



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