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] [patch 6/6] netif_release_rx_bufs

To: Gerd Hoffmann <kraxel@xxxxxxx>
Subject: Re: [Xen-devel] [patch 6/6] netif_release_rx_bufs
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Fri, 18 Aug 2006 13:25:35 +0100
Cc: Xen devel list <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 18 Aug 2006 05:26:03 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44E5A5C1.7080703@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbCwWelplsaIi60EduloQAKle7CWA==
Thread-topic: [Xen-devel] [patch 6/6] netif_release_rx_bufs
User-agent: Microsoft-Entourage/11.2.5.060620


On 18/8/06 12:34 pm, "Gerd Hoffmann" <kraxel@xxxxxxx> wrote:

> Keir Fraser wrote:
>> You've given up the original mfns at this point, to ensure you have enough
>> reservation headroom for the transfer. You'll be wanting to give the 'empty
>> mfn' to the balloon driver, which can simply stick the page on its
>> ballooned-out list. You might need to add a new API function to balloon
>> driver to do this.
> 
> Passing the page to the balloon driver works ok, but then I have trouble
> releasing the skb because shinfo(skb)->frags[0].page isn't valid any
> more.  Guess I better aquire a page from xen in netfront instead of
> letting the ballon driver do that ...

Best bet is to free the page to the balloon driver, and then set nr_frags to
zero. This is perfectly valid -- it was netfront that set it to non-zero in
the first place.

 -- Keir



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