From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: Re: how to handle paged hypercall args? Date: Thu, 11 Nov 2010 20:08:59 +0000 Message-ID: References: <20101111143338.GA27721@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20101111143338.GA27721@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Olaf Hering , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 11/11/2010 14:33, "Olaf Hering" 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