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

[Xen-devel] [PATCH][IOEMU] e1000 emulation

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH][IOEMU] e1000 emulation
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Mon, 25 Feb 2008 16:23:53 -0700
Delivery-date: Mon, 25 Feb 2008 15:24:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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>
Organization: OSLO R&D
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
   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.

The diff from Qemu CVS is as follows (for reference only):

--- e1000.c     2008-02-25 14:12:52.000000000 -0700
+++ e1000.c     2008-02-25 14:14:51.000000000 -0700
@@ -23,9 +23,7 @@
  */
 
 
-#include "hw.h"
-#include "pci.h"
-#include "net.h"
+#include "vl.h"
 
 #include "e1000_hw.h"
 
@@ -153,7 +151,7 @@
     if (val)
         val |= E1000_ICR_INT_ASSERTED;
     s->mac_reg[ICR] = val;
-    qemu_set_irq(s->dev.irq[0], (s->mac_reg[IMS] & s->mac_reg[ICR]) != 0);
+    pci_set_irq(&s->dev, 0, (s->mac_reg[IMS] & s->mac_reg[ICR]) != 0);
 }
 
 static void

Both Linux and Windows Server 2008 guests work with this device model on
Xen/ia64.  Please apply the attached patch.  Thanks,

        Alex

Attachment: e1000.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>