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] Fix etherboot option ROM loading

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Fix etherboot option ROM loading
From: Gianni Tedesco <gianni.tedesco@xxxxxxxxxx>
Date: Tue, 29 Jun 2010 13:01:23 +0100
Cc: Deegan <Tim.Deegan@xxxxxxxxxxxxx>, Tim, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 29 Jun 2010 05:00:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C84EAF2E.18C92%keir.fraser@xxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C84EAF2E.18C92%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, 2010-06-28 at 19:57 +0100, Keir Fraser wrote:
> On 28/06/2010 19:07, "Gianni Tedesco" <gianni.tedesco@xxxxxxxxxx> wrote:
> 
> > I am working on improved fix for this by building a gPXE ROM with
> > support for both rtl8139 and e1000
> 
> Which is what we do already, right? Or do we actually end up with two
> separate ROMs, one for rtl8139 and one for e1000?

No there's two separate ROM's. When I installed the rtl8139 ROM on an
e1000 machine it didn't recognize any network devices. That's what
prompted me to this patch.

And as for fixing for one kind of e1000 and breaking for other cases we
care about, I'm afraid that the answer is "yes we are." At least
assuming other qemu's out there with different PCI ID's?

> Hm, anyway, presumably internally gpxe has a list of vendor_id:device_id
> pairs for each NIC type that it supports? Shouldn't we just patch it so that
> the entire list gets exposed in the option ROM headers? That seems the
> simple straightforward fix, or is it more complex than that?

Yeah, I mean, if we load a ROM for e1000, then all types of e1000 will
work but the problem is that I'm not sure how we can get a list in to
the ROM headers. The spec was designed for loading a ROM from a specific
card. If we simply ignore the PCI ID's in the ROM header and load the
first blob then we may end up loading rtl8139 on e1000 machines or vice
versa just based on which ROM comes first... 

I suppose we could use a custom protocol to export a list of ID's for a
ROM. I would suggest a header that goes before the ROM so as not to
interfere with the standards-conforming bits. We'd just have to
special-case ethernet ROM handling a bit more in hvmloader.

Ideally we want 1 ROM with support for both chipsets and therefore all
known variants of those chipsets. That would allow for HVM's with card
of multiple types. But not figured out how to get gPXE to play like that
yet.

> -- Keir

Gianni


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