[PATCHv3 0/4] qemu-kvm: vhost net support

2009-08-17 Thread Michael S. Tsirkin
This adds support for vhost-net virtio kernel backend. This is RFC, but works without issues for me. Still needs to be split up, tested and benchmarked properly, but posting it here in case people want to test drive the kernel bits I posted. Changes since v2: - minor fixes - added patch to

[PATCHv3 1/4] qemu-kvm: move virtio-pci.o to near pci.o

2009-08-17 Thread Michael S. Tsirkin
virtio-pci depends, and will always depend, on pci.c so it makes sense to keep it in the same makefile, (unlike the rest of virtio files which should eventually be moved out to Makefile.hw). Signed-off-by: Michael S. Tsirkin m...@redhat.com --- Makefile.hw |2 +- Makefile.target |2

[PATCHv3 3/4] qemu-kvm: vhost-net implementation

2009-08-17 Thread Michael S. Tsirkin
This adds support for vhost-net virtio kernel backend. To enable (assuming device eth2): 1. enable promisc mode or program guest mac in device eth2 2. disable tso, gso, lro, jumbo frames on the card (disabling lro + jumbo frames should be sufficient, haven't tested this) 3. add vhost=eth2

[PATCHv3 4/4] qemu-kvm: add compat eventfd

2009-08-17 Thread Michael S. Tsirkin
Support build on rhel 5.3 where we have syscall for eventfd but not userspace wrapper. Signed-off-by: Michael S. Tsirkin m...@redhat.com --- compat/sys/eventfd.h | 13 + configure|1 + 2 files changed, 14 insertions(+), 0 deletions(-) create mode 100644

Re: [PATCHv3 0/4] qemu-kvm: vhost net support

2009-08-17 Thread Avi Kivity
On 08/17/2009 03:37 PM, Michael S. Tsirkin wrote: but posting it here in case people want to test drive the kernel bits I posted. I think that is best served if you post a link to a git tree... -- error compiling committee.c: too many arguments to function

[PATCHv3 2/4] virtio: move features to an inline function

2009-08-17 Thread Michael S. Tsirkin
devices should have the final say over which virtio features they support. E.g. indirect entries may or may not make sense in the context of virtio-console. Move the common bits from virtio-pci to an inline function and let each device call it. No functional changes. Signed-off-by: Michael S.