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-ia64-devel

[Xen-ia64-devel] Re: Preliminary work on networking code

To: "Magenheimer, Dan (HP Labs Fort Collins)" <dan.magenheimer@xxxxxx>
Subject: [Xen-ia64-devel] Re: Preliminary work on networking code
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Tue, 6 Dec 2005 16:22:49 +0000
Cc: Ewan Mellor <ewan@xxxxxxxxxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 06 Dec 2005 16:17:35 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <516F50407E01324991DD6D07B0531AD58761C6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <516F50407E01324991DD6D07B0531AD58761C6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx

On 6 Dec 2005, at 16:09, Magenheimer, Dan (HP Labs Fort Collins) wrote:

I'm confused: netback/interface.c:map/unmap_frontend_pages()
and netif_map all use consecutive pages and netif->comms_area
is set to point to the first of the two pages.  Then (also
in netif_map) the xmit sring is set to point to the first
page and the rcv sring is set to point to the second (of
the two consecutive) page.

Or are you saying that all of the code in netback/interface.c
could/should be rewritten to not make this assumption? (including
the calls to free_vm_area(netif->comms_area) which are
freeing both pages?)

They are arbitrary memory pages that happen to be mapped consecutively in the kernel virtual address space by netback. They get allocated independently in the netfront driver (function setup_device()) and separate grant references are generated for them.

 -- Keir


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

<Prev in Thread] Current Thread [Next in Thread>