[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] swiotlb



That should do the trick. 

K. Y 
 
>>> Keir Fraser <Keir.Fraser@xxxxxxxxxxxx> 04/14/06 2:50 am >>> 

On 13 Apr 2006, at 21:29, Ky Srinivasan wrote:

> Given that the function __sync_single() can be called in an
interrupt
> context, why do we call a   potentially blocking function
> (__copy_to_user) from within this function?

Good point. Would __copy_to_user_inatomic() be safe? It avoids 
might_sleep(). We know that the page fault itself (if any) will not 
block on I/O --  we only use __copy_to_user() to safely catch the fault

and return.

  --  Keir


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


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.