|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH][IOEMU] e1000 emulation
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
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>
|
- [Xen-devel] [PATCH][IOEMU] e1000 emulation,
Alex Williamson <=
|
|
|
|
|