]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Adapt qemuBuildInterfaceCommandLine to to multiqueue net
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 21 May 2013 13:50:09 +0000 (15:50 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 22 May 2013 15:24:27 +0000 (17:24 +0200)
commit1f24f6822560cb3efa56ebe1ef3381e85360f5fd
treefabef56c93e25a71f18c4332338dd836d99e9a6b
parent565c07f171f0e1fb2c9eca7150a6513eeb9a459e
qemu: Adapt qemuBuildInterfaceCommandLine to to multiqueue net

In order to learn libvirt multiqueue several things must be done:

1) The '/dev/net/tun' device needs to be opened multiple times with
IFF_MULTI_QUEUE flag passed to ioctl(fd, TUNSETIFF, &ifr);

2) Similarly, '/dev/vhost-net' must be opened as many times as in 1)
in order to keep 1:1 ratio recommended by qemu and kernel folks.

3) The command line construction code needs to switch from 'fd=X' to
'fds=X:Y:...:Z' and from 'vhostfd=X' to 'vhostfds=X:Y:...:Z'.

4) The monitor handling code needs to learn to pass multiple FDs.
src/network/bridge_driver.c
src/qemu/qemu_command.c
src/qemu/qemu_command.h
src/qemu/qemu_hotplug.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/uml/uml_conf.c
src/util/virnetdevtap.c
src/util/virnetdevtap.h