From 9b4814ad0c7598afed7cccedd1c49dadc8476077 Mon Sep 17 00:00:00 2001 From: Chris Wedgwood Date: Fri, 21 Sep 2018 22:08:16 +0000 Subject: [PATCH] [gate] Mask AVX2 to prevent 16.04 on 16.04 VMs boot crashes 16.04 on 16.04 VMs will crash (illegal instruction in raid6_avx21_gen_syndrome) on boot if the host has AVX2 and we pass that through. The issue seems to be the guest kernel sees presence of AVX2 so raid6 module makes use of it - though it's not enabled (different bits). Until this is resolved in the host hypervisor (kvm) and/or guest kernel, mask out AVX2 to prevent crashes in L1/L2 VMs. Change-Id: I0ca8edb8f62f9f2e96aa5e265bac631c346d0eac --- tools/g2/lib/virsh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/g2/lib/virsh.sh b/tools/g2/lib/virsh.sh index c05af100..e23c6f8c 100644 --- a/tools/g2/lib/virsh.sh +++ b/tools/g2/lib/virsh.sh @@ -126,7 +126,7 @@ vm_create() { virt-install \ --name "${NAME}" \ --virt-type kvm \ - --cpu host \ + --cpu host,+x2apic,-avx2 \ --graphics vnc,listen=0.0.0.0 \ --noautoconsole \ --network "network=promenade,model=virtio" \