From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bd2V7-0002Jp-LW for qemu-devel@nongnu.org; Thu, 25 Aug 2016 17:47:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bd2V2-0001I2-GB for qemu-devel@nongnu.org; Thu, 25 Aug 2016 17:47:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bd2V2-0001Hx-A1 for qemu-devel@nongnu.org; Thu, 25 Aug 2016 17:47:48 -0400 Date: Fri, 26 Aug 2016 03:17:46 +0530 From: Amit Shah Message-ID: <20160825214746.GB13560@localhost.localdomain> References: <1470227172-13704-1-git-send-email-zhang.zhanghailiang@huawei.com> <1470227172-13704-3-git-send-email-zhang.zhanghailiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1470227172-13704-3-git-send-email-zhang.zhanghailiang@huawei.com> Subject: Re: [Qemu-devel] [PATCH COLO-Frame v18 02/34] migration: Introduce capability 'x-colo' to migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: zhanghailiang Cc: qemu-devel@nongnu.org, quintela@redhat.com, dgilbert@redhat.com, peter.huangpeng@huawei.com, eddie.dong@intel.com, wency@cn.fujitsu.com, lizhijian@cn.fujitsu.com, zhangchen.fnst@cn.fujitsu.com, xiecl.fnst@cn.fujitsu.com, Eric Blake , Markus Armbruster , Gonglei On (Wed) 03 Aug 2016 [20:25:40], zhanghailiang wrote: > We add helper function colo_supported() to indicate whether > colo is supported or not, with which we use to control whether or not > showing 'x-colo' string to users, they can use qmp command > 'query-migrate-capabilities' or hmp command 'info migrate_capabilities' > to learn if colo is supported. > > Cc: Juan Quintela > Cc: Amit Shah > Cc: Eric Blake > Cc: Markus Armbruster > Signed-off-by: zhanghailiang > Signed-off-by: Li Zhijian > Signed-off-by: Gonglei > Reviewed-by: Eric Blake > +#include "qemu/osdep.h" > +#include "migration/colo.h" > + > +bool colo_supported(void) > +{ > + return true; > +} Can you start with this disabled, and returning true when all the pieces are done (ie close to the patches when the functionality is actually useful later in the series?).