summaryrefslogtreecommitdiffstats
path: root/patches/opnfv-fuel/0003-lib.sh-Use-host-passthrough-when-spawning-VMs.patch
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-07-25 00:29:47 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-07-25 03:06:24 +0200
commite46f1da4b3342ca724fb5556a5fac547fee274b3 (patch)
treee4f10abbc6130dd4395fef0b8a3f2d73bb445b04 /patches/opnfv-fuel/0003-lib.sh-Use-host-passthrough-when-spawning-VMs.patch
parent5f29466a9eece85c13b53100ca4ef980f9e7660c (diff)
p/fuel: virtio: min libvirt 3.x and Qemu 2.6
Expect host virtualization tools (libvirt, qemu) to be recent enough to support modern virtio-net-pci out of box as a default. This allows us to drop some changes and a hack - see [1]: - "model=virtio" implies "model=virtio-net-pci" on libvirt 3.x; - "model=virtio" puts each NIC on a seperate bus, all work now; - modern virtio is automatically used when NIC is on PCIe bus; Revert "p/fuel: lib.sh: Revert to virtio-mmio for PXE net" This reverts commit 4f72e6be436badd2ded546424ec4a304cd6ce5d3. [1] https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg07594.html Change-Id: Iaa7af63846c9d9dca5b7a9be5efa54f8cd56242e Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'patches/opnfv-fuel/0003-lib.sh-Use-host-passthrough-when-spawning-VMs.patch')
-rw-r--r--patches/opnfv-fuel/0003-lib.sh-Use-host-passthrough-when-spawning-VMs.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/patches/opnfv-fuel/0003-lib.sh-Use-host-passthrough-when-spawning-VMs.patch b/patches/opnfv-fuel/0003-lib.sh-Use-host-passthrough-when-spawning-VMs.patch
new file mode 100644
index 00000000..57e45d6f
--- /dev/null
+++ b/patches/opnfv-fuel/0003-lib.sh-Use-host-passthrough-when-spawning-VMs.patch
@@ -0,0 +1,29 @@
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Fri, 21 Jul 2017 19:59:33 +0200
+Subject: [PATCH] lib.sh: Use host-passthrough when spawning VMs
+
+virsh defaults to using "host-model" instead of "host-passthrough",
+which not only might lead to a small performance hit on x86, it is
+also causing compatibility issues with libvirt 3.x.
+
+Address this by explicitly requesting "host-passthrough" as the
+CPU model for virt-install.
+
+Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+---
+ mcp/scripts/lib.sh | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
+index 862fdcc..251c5a5 100644
+--- a/mcp/scripts/lib.sh
++++ b/mcp/scripts/lib.sh
+@@ -65,7 +65,7 @@ create_vms() {
+
+ # create vms with specified options
+ for node in "${vnodes[@]}"; do
+- virt-install --name ${node} --ram ${vnodes_ram[$node]} --vcpus ${vnodes_vcpus[$node]} --cpu host --accelerate \
++ virt-install --name ${node} --ram ${vnodes_ram[$node]} --vcpus ${vnodes_vcpus[$node]} --cpu host-passthrough --accelerate \
+ --network network:pxe,model=virtio \
+ --network network:mgmt,model=virtio \
+ --network network:internal,model=virtio \