|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-devel
Re: [Xen-devel] [patch 6/6] netif_release_rx_bufs
 
Keir Fraser wrote:
> 
>> How can I do that?  gnttab_end_foreign_transfer_ref() doesn't cut it, it
>> will not succeed unconditionally ...
> 
> The function will not spin unboundedly and, when it returns, the grant is
> definitely no longer active. If any page was transferred via the grant, it
> is returned to the caller (else zero is returned). It does just what you
> need.
Oh, ok.  I assumed zero return means it failed.  Guess I just have to
keep track of the original mfns so I can map them back into the address
space in case no page was transfered, right?
cheers,
  Gerd
-- 
Gerd Hoffmann <kraxel@xxxxxxx>
http://www.suse.de/~kraxel/julika-dora.jpeg
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 
 |   
 
 | 
    | 
  
  
    |   | 
    |