public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Jonatan Schlag <jonatan.schlag@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH] Libvirt: load vhost_net before libvirtd start.
Date: Sun, 14 Aug 2016 11:25:01 +0200	[thread overview]
Message-ID: <1471166701-820-1-git-send-email-jonatan.schlag@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1148 bytes --]

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(a)ipfire.org>
---
 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 f70b859..854c52c 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 f97d208..40bc6be 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.1.4


                 reply	other threads:[~2016-08-14  9:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1471166701-820-1-git-send-email-jonatan.schlag@ipfire.org \
    --to=jonatan.schlag@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox