Virtio network device
commitf76a24c8df4675c599feffc9abd3b95fc443b16f
authorAnthony Liguori <aliguori@us.ibm.com>
Sun, 30 Dec 2007 22:18:23 +0000 (31 00:18 +0200)
committerAvi Kivity <avi@qumranet.com>
Wed, 2 Jan 2008 15:49:08 +0000 (2 17:49 +0200)
tree1d7810a2eb3ecc8c3c3250389de2d64ceb1a578e
parent05b97bc61a509e80386396bb643f7ee958a51f60
Virtio network device

This patch implements the backend support for the virtio network device.  The
device is optimized for virtualized environments by limiting the number of
guest=>host transitions per-packet.  In the best case, the number of
transitions per-packet is < 1.

With some further optimizations, I have been able to obtain 1.5gbit/sec
host=>guest with this driver (compared to the 90mbit/sec from the rtl8139
card).  This requires additional patches not present in this series.

[dor: fix tx race with unload]

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Dor Laor <dor.laor@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Makefile.target
hw/pc.h
hw/pci.c
hw/virtio-net.c [new file with mode: 0644]