summaryrefslogtreecommitdiff
path: root/hw/xen_backend.h
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-22 15:19:35 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-22 15:19:35 +0000
commit2782d1b48f952005cd7db06af9403dc8ec86f658 (patch)
tree5f0d952d25acd63a148bce197ee9b5a2121ef7a4 /hw/xen_backend.h
parent2aa85b8239f1302f8aaab2e6b321cd5c592253fd (diff)
downloadqemu-2782d1b48f952005cd7db06af9403dc8ec86f658.tar.gz
qemu-2782d1b48f952005cd7db06af9403dc8ec86f658.tar.bz2
qemu-2782d1b48f952005cd7db06af9403dc8ec86f658.zip
xen: add net backend driver. (Gerd Hoffmann)
This patch adds a network interface backend driver to qemu. It is a pure userspace implemention using the gntdev interface. It uses "qnet" as backend name in xenstore so it doesn't interfere with the netback backend (aka "vnif"). The network backend is hooked into the corrosponding qemu vlan, i.e. vif 0 is hooked into vlan 0. To make the packages actually arrive somewhere you additionally have to link the vlan to the outside world using the usual qemu command line options such as "-net tap,...". Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7224 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/xen_backend.h')
-rw-r--r--hw/xen_backend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xen_backend.h b/hw/xen_backend.h
index dd426ddb4f..4e4be14ed4 100644
--- a/hw/xen_backend.h
+++ b/hw/xen_backend.h
@@ -89,6 +89,7 @@ extern struct XenDevOps xen_console_ops; /* xen_console.c */
extern struct XenDevOps xen_kbdmouse_ops; /* xen_framebuffer.c */
extern struct XenDevOps xen_framebuffer_ops; /* xen_framebuffer.c */
extern struct XenDevOps xen_blkdev_ops; /* xen_disk.c */
+extern struct XenDevOps xen_netdev_ops; /* xen_nic.c */
void xen_init_display(int domid);