[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [7224] xen: add net backend driver.
From: |
Andreas Färber |
Subject: |
Re: [Qemu-devel] [7224] xen: add net backend driver. |
Date: |
Sat, 30 May 2009 12:46:06 +0200 |
Hi,
Am 22.04.2009 um 17:19 schrieb Anthony Liguori:
Revision: 7224
http://svn.sv.gnu.org/viewvc/?
view=rev&root=qemu&revision=7224
Author: aliguori
Date: 2009-04-22 15:19:35 +0000 (Wed, 22 Apr 2009)
Log Message:
[...]
Modified Paths:
--------------
trunk/Makefile.target
trunk/hw/xen_backend.h
trunk/hw/xen_machine_pv.c
Added Paths:
-----------
trunk/hw/xen_nic.c
Modified: trunk/Makefile.target
===================================================================
--- trunk/Makefile.target 2009-04-22 15:19:30 UTC (rev 7223)
+++ trunk/Makefile.target 2009-04-22 15:19:35 UTC (rev 7224)
@@ -562,7 +562,7 @@
# xen backend driver support
XEN_OBJS := xen_machine_pv.o xen_backend.o
-XEN_OBJS += xen_console.o xenfb.o xen_disk.o
+XEN_OBJS += xen_console.o xenfb.o xen_disk.o xen_nic.o
ifeq ($(CONFIG_XEN), yes)
OBJS += $(XEN_OBJS)
LIBS += $(XEN_LIBS)
[...]
Added: trunk/hw/xen_nic.c
===================================================================
--- trunk/hw/xen_nic.c (rev 0)
+++ trunk/hw/xen_nic.c 2009-04-22 15:19:35 UTC (rev 7224)
[...]
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <unistd.h>
+#include <signal.h>
+#include <inttypes.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <pthread.h>
+#include <sys/socket.h>
+#include <sys/ioctl.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/mman.h>
+#include <sys/wait.h>
+#include <linux/if.h>
+#include <linux/if_tun.h>
This breaks on OpenSolaris 2008.11, which has Xen-based xVM, so that
Xen support gets enabled by configure, but no linux/ headers obviously
to compile the above.
Any thoughts on how to fix?
Andreas
+
+#include <xs.h>
+#include <xenctrl.h>
+#include <xen/io/xenbus.h>
+#include <xen/io/netif.h>
+
+#include "hw.h"
+#include "net.h"
+#include "qemu-char.h"
+#include "xen_backend.h"
[...]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [7224] xen: add net backend driver.,
Andreas Färber <=