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] one more question on ethernet front end

To: ron minnich <rminnich@xxxxxxxx>
Subject: Re: [Xen-devel] one more question on ethernet front end
From: Ian Pratt <Ian.Pratt@xxxxxxxxxxxx>
Date: Wed, 01 Sep 2004 23:59:44 +0100
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxxx, Ian.Pratt@xxxxxxxxxxxx
Delivery-date: Thu, 02 Sep 2004 00:05:28 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Wed, 01 Sep 2004 16:24:49 MDT." <Pine.LNX.4.44.0409011619330.5022-100000@xxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> On Wed, 1 Sep 2004, Keir Fraser wrote:
> 
> > 
> > The frames you get from the receive ring are not necessarily the ones
> > you removed from your memory reservation. i.e., you will be replacing
> > with different pages.
> 
> Something else I'm unclear on then: what if you have a pfn array that is
> of size x, covering a range of physical frame numbers, and you get back a
> pfn that has an index such that it won't fit in that array? I'm a little
> unclear on how this would work.  It looks in the newer stuff like you
> don't really resize the array, unless I missed it. I guess I'll look
> again, but does the linux loader size the mfn array in all cases so that
> it has enough entries for all of physical memory, so that it can 
> accomodate any PFN? 

When you receive a packet you get given the MFN of the page its
contained in. It's purely a matter for the guestos where it
chooses to insert it into it's PFN table. Typically, it will
insert it into a slot that was vacated when the guestos passed a
free receive buffer down to the driver domain. If you look at the
linux code, you'll see that the data page associated with the skb
gets passed down as the free buffer. When a packet is received,
the driver hooks in the new page to take the place of the
original data page.

Ian
 


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel