yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
Blob Blame History Raw
From 29a041458edc3c068a20e3bc4052e820978607b9 Mon Sep 17 00:00:00 2001
From: Jeffrey Cody <jcody@redhat.com>
Date: Mon, 31 Jul 2017 16:25:56 +0200
Subject: [PATCH 14/17] RHEL Diff.: Add option in configure to disable live
 block ops

RH-Author: Jeffrey Cody <jcody@redhat.com>
Message-id: <99a23905993eea8c6343f72812813abe82500e9c.1501517983.git.jcody@redhat.com>
Patchwork-id: 75873
O-Subject: [Pegas-1.0 qemu-kvm PATCH v4 1/4] RHEL Diff.: Add option in configure to disable live block ops
Bugzilla: 1418532
RH-Acked-by: Eric Blake <eblake@redhat.com>
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>

This adds in the option to disable the live block operations.  The
resultant config option is not checked until subsequent patches.

Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
---
 configure | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/configure b/configure
index a658481..9f200c2 100755
--- a/configure
+++ b/configure
@@ -318,6 +318,7 @@ virglrenderer=""
 tpm="yes"
 libssh2=""
 live_block_migration="no"
+live_block_ops="yes"
 numa=""
 tcmalloc="no"
 jemalloc="no"
@@ -1191,6 +1192,10 @@ for opt do
   ;;
   --enable-live-block-migration) live_block_migration="yes"
   ;;
+  --disable-live-block-ops) live_block_ops="no"
+  ;;
+  --enable-live-block-ops) live_block_ops="yes"
+  ;;
   --disable-vxhs) vxhs="no"
   ;;
   --enable-vxhs) vxhs="yes"
@@ -1434,6 +1439,7 @@ disabled with --disable-FEATURE, default is enabled if available:
   tpm             TPM support
   libssh2         ssh block device support
   live-block-migration live block migration support
+  live-block-ops  live block operations support
   numa            libnuma support
   tcmalloc        tcmalloc support
   jemalloc        jemalloc support
@@ -5159,6 +5165,7 @@ echo "libssh2 support   $libssh2"
 echo "TPM passthrough   $tpm_passthrough"
 echo "QOM debugging     $qom_cast_debug"
 echo "Live block migration $live_block_migration"
+echo "Live block ops    $live_block_ops"
 echo "lzo support       $lzo"
 echo "snappy support    $snappy"
 echo "bzip2 support     $bzip2"
@@ -5734,6 +5741,10 @@ if test "$live_block_migration" = "yes" ; then
   echo "CONFIG_LIVE_BLOCK_MIGRATION=y" >> $config_host_mak
 fi
 
+if test "$live_block_ops" = "yes" ; then
+  echo "CONFIG_LIVE_BLOCK_OPS=y" >> $config_host_mak
+fi
+
 # USB host support
 if test "$libusb" = "yes"; then
   echo "HOST_USB=libusb legacy" >> $config_host_mak
-- 
1.8.3.1