Re: [Xen-devel] [PATCH v10 22/31] implement the cmdline for COLO

2016-03-02 Thread Wen Congyang
On 03/02/2016 11:03 PM, Wei Liu wrote: > On Mon, Feb 22, 2016 at 10:52:26AM +0800, Wen Congyang wrote: > [...] >> +if (libxl_defbool_val(info->colo)) { >> +if (libxl_defbool_val(info->compression)) { > > This can be simplified as > >if (libxl_defbool_val(xxx) && libxl_defbool_

Re: [Xen-devel] [PATCH v10 22/31] implement the cmdline for COLO

2016-03-02 Thread Wei Liu
On Mon, Feb 22, 2016 at 10:52:26AM +0800, Wen Congyang wrote: [...] > +if (libxl_defbool_val(info->colo)) { > +if (libxl_defbool_val(info->compression)) { This can be simplified as if (libxl_defbool_val(xxx) && libxl_defbool_val(yyy)) > +LOG(ERROR, "cannot use memo

[Xen-devel] [PATCH v10 22/31] implement the cmdline for COLO

2016-02-21 Thread Wen Congyang
Add a new option -c to the command 'xl remus'. If you want to use COLO HA instead of Remus HA, please use -c option. Update man pages to reflect the addition of a new option to 'xl remus' command. Also add a new option -c to the internal command 'xl migrate-receive'. Signed-off-by: Wen Congyang