From a07b8a2d554234780b95b0f2d005e5fa3a8df8ac Mon Sep 17 00:00:00 2001 From: Jonatan Schlag Date: Sun, 14 Aug 2016 11:25:01 +0200 Subject: [PATCH] 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 Signed-off-by: Michael Tremer --- lfs/libvirt | 2 +- src/initscripts/init.d/libvirtd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lfs/libvirt b/lfs/libvirt index f70b8594c..854c52c9a 100644 --- a/lfs/libvirt +++ b/lfs/libvirt @@ -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" diff --git a/src/initscripts/init.d/libvirtd b/src/initscripts/init.d/libvirtd index f97d208f4..40bc6bee3 100644 --- a/src/initscripts/init.d/libvirtd +++ b/src/initscripts/init.d/libvirtd @@ -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 -- 2.39.2