From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tina Yang Subject: RE: [PATCH][IOEMU] e1000 emulation Date: Tue, 26 Feb 2008 14:50:41 -0800 Message-ID: <47C497C1.7030405@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: alex.williamson@hp.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > The attached patch adds e1000 emulation to Xen. This is a direct >port of the e1000 driver currently in Qemu CVS with extremely minimal >changes (as shown below). This is useful for Xen as new OSes may not >support the old 100Mbps NICs we currently support (especially on >non-x86). Drivers for e1000 should be more readily available. Per Intel 82540EM Software Developer's Manual pp. 211, the mmio size is 0x20000, or address overlapping occurs and causes the second card to fail, which happened to me earlier. Tina --- tools/ioemu/hw/e1000.c.orig 2008-02-26 10:55:00.113124000 -0800 +++ tools/ioemu/hw/e1000.c 2008-02-26 10:55:00.111124000 -0800 @@ -48,7 +48,7 @@ static int debugflags = DBGBIT(TXERR) | #endif #define IOPORT_SIZE 0x40 -#define PNPMMIO_SIZE 0x60000 +#define PNPMMIO_SIZE 0x20000 /* * HW models: