]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Libvirt: load vhost_net before libvirtd start.
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Sun, 14 Aug 2016 09:25:01 +0000 (11:25 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 14 Aug 2016 14:43:00 +0000 (15:43 +0100)
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>
lfs/libvirt
src/initscripts/init.d/libvirtd

index f70b8594cb285e12a2dabeba5778352b9961d49c..854c52c9af73df673b0111acfd3571f6690b882a 100644 (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"
 
index f97d208f45ad4518a260fd879d1dfdf87e25b936..40bc6bee3459c04290c3559bc9fc48b8e21edf68 100644 (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