diff mbox

[COLO-Frame,v18,01/34] configure: Add parameter for configure to enable/disable COLO support

Message ID 1470227172-13704-2-git-send-email-zhang.zhanghailiang@huawei.com (mailing list archive)
State New, archived
Headers show

Commit Message

Zhanghailiang Aug. 3, 2016, 12:25 p.m. UTC
configure --enable-colo/--disable-colo to switch COLO
support on/off.
COLO support is On by default.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
v11:
- Turn COLO on in default (Eric's suggestion)
---
 configure | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Amit Shah Aug. 25, 2016, 9:45 p.m. UTC | #1
On (Wed) 03 Aug 2016 [20:25:39], zhanghailiang wrote:
> configure --enable-colo/--disable-colo to switch COLO
> support on/off.
> COLO support is On by default.

Can you please make this the last patch in the series - so we get the
code in before we add in the config option?  Better for bisection, but
also for a logical flow.

Thanks,

                Amit
Zhanghailiang Sept. 1, 2016, 3:26 a.m. UTC | #2
Hi Amit,

On 2016/8/26 5:45, Amit Shah wrote:
> On (Wed) 03 Aug 2016 [20:25:39], zhanghailiang wrote:
>> configure --enable-colo/--disable-colo to switch COLO
>> support on/off.
>> COLO support is On by default.
>
> Can you please make this the last patch in the series - so we get the
> code in before we add in the config option?  Better for bisection, but
> also for a logical flow.
>

I have moved it to the end of the series, please see the new version.

Thanks.
Hailiang

> Thanks,
>
>                  Amit
>
> .
>
diff mbox

Patch

diff --git a/configure b/configure
index 3615390..78fda7d 100755
--- a/configure
+++ b/configure
@@ -230,6 +230,7 @@  xfs=""
 vhost_net="no"
 vhost_scsi="no"
 kvm="no"
+colo="yes"
 rdma=""
 gprof="no"
 debug_tcg="no"
@@ -919,6 +920,10 @@  for opt do
   ;;
   --enable-kvm) kvm="yes"
   ;;
+  --disable-colo) colo="no"
+  ;;
+  --enable-colo) colo="yes"
+  ;;
   --disable-tcg-interpreter) tcg_interpreter="no"
   ;;
   --enable-tcg-interpreter) tcg_interpreter="yes"
@@ -1356,6 +1361,7 @@  disabled with --disable-FEATURE, default is enabled if available:
   fdt             fdt device tree
   bluez           bluez stack connectivity
   kvm             KVM acceleration support
+  colo            COarse-grain LOck-stepping VM for Non-stop Service
   rdma            RDMA-based migration support
   uuid            uuid support
   vde             support for vde network
@@ -4857,6 +4863,7 @@  echo "Linux AIO support $linux_aio"
 echo "ATTR/XATTR support $attr"
 echo "Install blobs     $blobs"
 echo "KVM support       $kvm"
+echo "COLO support      $colo"
 echo "RDMA support      $rdma"
 echo "TCG interpreter   $tcg_interpreter"
 echo "fdt support       $fdt"
@@ -5468,6 +5475,10 @@  if have_backend "ftrace"; then
 fi
 echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak
 
+if test "$colo" = "yes"; then
+  echo "CONFIG_COLO=y" >> $config_host_mak
+fi
+
 if test "$rdma" = "yes" ; then
   echo "CONFIG_RDMA=y" >> $config_host_mak
 fi