Libvirt: load vhost_net before libvirtd start.

If the  kernel module vhot_net is loaded, the performance of virtio
networking is better then without vhost_net.
So the module is loaded before libvirtd ist started to get the benefit
of vhost_net.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Jonatan Schlag
2016-08-14 11:25:01 +02:00
committed by Michael Tremer
parent cf5c7c9f2b
commit a07b8a2d55
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ DIR_APP = $(DIR_SRC)/$(THISAPP)
TARGET = $(DIR_INFO)/$(THISAPP)
SUP_ARCH = i586 x86_64
PROG = libvirt
PAK_VER = 8
PAK_VER = 9
DEPS = "libpciaccess libyajl ncat qemu"

View File

@@ -18,7 +18,7 @@
case $1 in
start)
boot_mesg "Load required kernel modules for Libvirt"
modprobe tun
modprobe tun vhost_net
evaluate_retval
boot_mesg "Starting Libvirt Daemon..."
loadproc /usr/sbin/libvirtd -d