From fb42e3897830ba49ee9c45439127a5a9e55ccab3 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Thu, 26 Mar 2020 21:43:27 +0000 Subject: [PATCH] scripts: update configuration script to support QEMU 5.0 Update configure-hypervisor.sh to support QEMU 5.0. fixes #989 Signed-off-by: Julio Montes --- scripts/configure-hypervisor.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/scripts/configure-hypervisor.sh b/scripts/configure-hypervisor.sh index 8aa266580d..e1d2670b4f 100755 --- a/scripts/configure-hypervisor.sh +++ b/scripts/configure-hypervisor.sh @@ -207,8 +207,17 @@ generate_qemu_options() { # Disabled options - # bluetooth support not required - qemu_options+=(size:--disable-bluez) + if [ "${qemu_version_major}" -ge 5 ]; then + # Disable sheepdog block driver support + qemu_options+=(size:--disable-sheepdog) + + # Disable block migration in the main migration stream + qemu_options+=(size:--disable-live-block-migration) + else + # Starting from QEMU 5.0, the bluetooth code has been removed without replacement. + # bluetooth support not required + qemu_options+=(size:--disable-bluez) + fi # braille support not required qemu_options+=(size:--disable-brlapi) @@ -397,6 +406,9 @@ generate_qemu_options() { # for that architecture if [ "$arch" == x86_64 ]; then qemu_options+=(speed:--enable-avx2) + if [ "${qemu_version_major}" -ge 5 ]; then + qemu_options+=(speed:--enable-avx512f) + fi # According to QEMU's nvdimm documentation: When 'pmem' is 'on' and QEMU is # built with libpmem support, QEMU will take necessary operations to guarantee # the persistence of its own writes to the vNVDIMM backend.