diff mbox

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

Message ID 1434617935-6924-2-git-send-email-zhang.zhanghailiang@huawei.com
State New
Headers show

Commit Message

Zhanghailiang June 18, 2015, 8:58 a.m. UTC
configure --enable-colo/--disable-colo to switch COLO
support on/off.
COLO support is off by default.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
---
 configure | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

Dr. David Alan Gilbert July 3, 2015, 5:51 p.m. UTC | #1
* zhanghailiang (zhang.zhanghailiang@huawei.com) wrote:
> configure --enable-colo/--disable-colo to switch COLO
> support on/off.
> COLO support is off by default.
> 
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
> ---
>  configure | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)

This should add an entry in the Usage:  text;
search for the line starting 'Optional features, enable with'

Dave

> diff --git a/configure b/configure
> index 222694f..8b6242f 100755
> --- a/configure
> +++ b/configure
> @@ -259,6 +259,7 @@ xfs=""
>  vhost_net="no"
>  vhost_scsi="no"
>  kvm="no"
> +colo="no"
>  rdma=""
>  gprof="no"
>  debug_tcg="no"
> @@ -932,6 +933,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"
> @@ -1336,6 +1341,10 @@ Advanced options (experts only):
>    --disable-slirp          disable SLIRP userspace network connectivity
>    --disable-kvm            disable KVM acceleration support
>    --enable-kvm             enable KVM acceleration support
> +  --disable-colo           disable COarse-grain LOck-stepping Virtual
> +                           Machines for Non-stop Service
> +  --enable-colo            enable COarse-grain LOck-stepping Virtual
> +                           Machines for Non-stop Service (default)
>    --disable-rdma           disable RDMA-based migration support
>    --enable-rdma            enable RDMA-based migration support
>    --enable-tcg-interpreter enable TCG with bytecode interpreter (TCI)
> @@ -4450,6 +4459,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"
> @@ -5007,6 +5017,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
> -- 
> 1.7.12.4
> 
> 
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
Zhanghailiang July 6, 2015, 5:27 a.m. UTC | #2
On 2015/7/4 1:51, Dr. David Alan Gilbert wrote:
> * zhanghailiang (zhang.zhanghailiang@huawei.com) wrote:
>> configure --enable-colo/--disable-colo to switch COLO
>> support on/off.
>> COLO support is off by default.
>>
>> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
>> Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
>> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
>> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
>> ---
>>   configure | 14 ++++++++++++++
>>   1 file changed, 14 insertions(+)
>
> This should add an entry in the Usage:  text;
> search for the line starting 'Optional features, enable with'
>

Will add it in next version, thanks.

zhanghailiang

> Dave
>
>> diff --git a/configure b/configure
>> index 222694f..8b6242f 100755
>> --- a/configure
>> +++ b/configure
>> @@ -259,6 +259,7 @@ xfs=""
>>   vhost_net="no"
>>   vhost_scsi="no"
>>   kvm="no"
>> +colo="no"
>>   rdma=""
>>   gprof="no"
>>   debug_tcg="no"
>> @@ -932,6 +933,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"
>> @@ -1336,6 +1341,10 @@ Advanced options (experts only):
>>     --disable-slirp          disable SLIRP userspace network connectivity
>>     --disable-kvm            disable KVM acceleration support
>>     --enable-kvm             enable KVM acceleration support
>> +  --disable-colo           disable COarse-grain LOck-stepping Virtual
>> +                           Machines for Non-stop Service
>> +  --enable-colo            enable COarse-grain LOck-stepping Virtual
>> +                           Machines for Non-stop Service (default)
>>     --disable-rdma           disable RDMA-based migration support
>>     --enable-rdma            enable RDMA-based migration support
>>     --enable-tcg-interpreter enable TCG with bytecode interpreter (TCI)
>> @@ -4450,6 +4459,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"
>> @@ -5007,6 +5017,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
>> --
>> 1.7.12.4
>>
>>
> --
> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
>
> .
>
diff mbox

Patch

diff --git a/configure b/configure
index 222694f..8b6242f 100755
--- a/configure
+++ b/configure
@@ -259,6 +259,7 @@  xfs=""
 vhost_net="no"
 vhost_scsi="no"
 kvm="no"
+colo="no"
 rdma=""
 gprof="no"
 debug_tcg="no"
@@ -932,6 +933,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"
@@ -1336,6 +1341,10 @@  Advanced options (experts only):
   --disable-slirp          disable SLIRP userspace network connectivity
   --disable-kvm            disable KVM acceleration support
   --enable-kvm             enable KVM acceleration support
+  --disable-colo           disable COarse-grain LOck-stepping Virtual
+                           Machines for Non-stop Service
+  --enable-colo            enable COarse-grain LOck-stepping Virtual
+                           Machines for Non-stop Service (default)
   --disable-rdma           disable RDMA-based migration support
   --enable-rdma            enable RDMA-based migration support
   --enable-tcg-interpreter enable TCG with bytecode interpreter (TCI)
@@ -4450,6 +4459,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"
@@ -5007,6 +5017,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