From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cjnWx-0004mY-82 for qemu-devel@nongnu.org; Fri, 03 Mar 2017 08:46:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cjnWt-00042y-Be for qemu-devel@nongnu.org; Fri, 03 Mar 2017 08:45:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53552) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cjnWt-00042s-3W for qemu-devel@nongnu.org; Fri, 03 Mar 2017 08:45:55 -0500 From: Markus Armbruster References: <1487834070-31374-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> <1487834070-31374-3-git-send-email-zhangchen.fnst@cn.fujitsu.com> <0f7cd737-e851-1e1f-2fe7-0ac969e0f86b@redhat.com> Date: Fri, 03 Mar 2017 14:45:51 +0100 In-Reply-To: <0f7cd737-e851-1e1f-2fe7-0ac969e0f86b@redhat.com> (Eric Blake's message of "Thu, 23 Feb 2017 09:34:57 -0600") Message-ID: <87h93ascc0.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH V8 2/2] Add a new qmp command to do checkpoint, query xen replication status List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Zhang Chen , qemu devel , zhanghailiang , Stefano Stabellini , Wen Congyang , Jason Wang , "eddie . dong" , bian naimeng , Li Zhijian Eric Blake writes: > On 02/23/2017 01:14 AM, Zhang Chen wrote: >> We can call this qmp command to do checkpoint outside of qemu. >> Xen colo will need this function. >> >> Signed-off-by: Zhang Chen >> Signed-off-by: Wen Congyang >> Reviewed-by: Eric Blake > > You made a substantial change to this patch since v7 in response to my > comments; when you do that, it's best to remove the R-b to make sure I > re-review the changes and am still happy with them. > >> >> --- >> migration/colo.c | 23 +++++++++++++++++++++++ >> qapi-schema.json | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ >> 2 files changed, 71 insertions(+) >> > >> ## >> +# @ReplicationStatus: >> +# >> +# The result format for 'query-xen-replication-status'. >> +# >> +# @status: true to error, false to normal. > > This is now a poor name for the parameter. Please rename it; probably > to @error (if you want to keep true meaning a problem has been > detected), or to @okay (if you want to invert the sense, and @desc is > only present when @okay is false). We could replace both members by '*error': 'str', present exactly when status is "bad". >> +# >> +# @desc: #optional the human readable error description string, when >> +# @status is 'true'. >> +# >> +# Since: 2.9 >> +## >> +{ 'struct': 'ReplicationStatus', >> + 'data': { 'status': 'bool', '*desc': 'str' } } >> + >> +## >> +# @query-xen-replication-status: >> +# >> +# Query replication status while the vm is running. >> +# >> +# Returns: A @ReplicationResult objects showing the status. > > s/objects/object/ > >> +# >> +# Example: >> +# >> +# -> { "execute": "query-xen-replication-status" } >> +# <- { "return": { "status": "normal" } } > > This example is now wrong. > > You'll need a v9.