diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-22 15:19:35 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-22 15:19:35 +0000 |
commit | e613b064a88a94b2e887f2cb7a5a3a9082e67d9b (patch) | |
tree | 5f0d952d25acd63a148bce197ee9b5a2121ef7a4 /hw/xen_machine_pv.c | |
parent | 62d23efac8905a46277f666c909e826f91c12aa1 (diff) | |
download | qemu-e613b064a88a94b2e887f2cb7a5a3a9082e67d9b.zip qemu-e613b064a88a94b2e887f2cb7a5a3a9082e67d9b.tar.gz qemu-e613b064a88a94b2e887f2cb7a5a3a9082e67d9b.tar.bz2 |
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_machine_pv.c')
-rw-r--r-- | hw/xen_machine_pv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xen_machine_pv.c b/hw/xen_machine_pv.c index c764bea..c21617a 100644 --- a/hw/xen_machine_pv.c +++ b/hw/xen_machine_pv.c @@ -60,6 +60,7 @@ static void xen_init_pv(ram_addr_t ram_size, int vga_ram_size, xen_be_register("vkbd", &xen_kbdmouse_ops); xen_be_register("vfb", &xen_framebuffer_ops); xen_be_register("qdisk", &xen_blkdev_ops); + xen_be_register("qnic", &xen_netdev_ops); /* setup framebuffer */ xen_init_display(xen_domid); |