From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfIgQ-0004Hp-P4 for qemu-devel@nongnu.org; Wed, 31 Aug 2016 23:28:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfIgM-0004hh-G1 for qemu-devel@nongnu.org; Wed, 31 Aug 2016 23:28:53 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:64920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfIgL-0004hH-MK for qemu-devel@nongnu.org; Wed, 31 Aug 2016 23:28:50 -0400 References: <1470227172-13704-1-git-send-email-zhang.zhanghailiang@huawei.com> <1470227172-13704-3-git-send-email-zhang.zhanghailiang@huawei.com> <20160825214746.GB13560@localhost.localdomain> From: Hailiang Zhang Message-ID: <57C7A01B.2070600@huawei.com> Date: Thu, 1 Sep 2016 11:27:23 +0800 MIME-Version: 1.0 In-Reply-To: <20160825214746.GB13560@localhost.localdomain> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit 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: Amit Shah Cc: peter.huangpeng@huawei.com, qemu-devel@nongnu.org, quintela@redhat.com, dgilbert@redhat.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 2016/8/26 5:47, Amit Shah wrote: > 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?). > Yes, i have done as your advise, please see the new version, thanks. > . >