From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCid4-0000vH-Gu for qemu-devel@nongnu.org; Wed, 08 Jul 2015 02:14:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCid0-00020L-Su for qemu-devel@nongnu.org; Wed, 08 Jul 2015 02:14:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCid0-0001yL-NO for qemu-devel@nongnu.org; Wed, 08 Jul 2015 02:14:42 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id C51DE29330C for ; Wed, 8 Jul 2015 06:14:41 +0000 (UTC) Date: Wed, 8 Jul 2015 08:14:40 +0200 From: Jiri Denemark Message-ID: <20150708061440.GA3344@orkuz.home> References: <1436274549-28826-1-git-send-email-quintela@redhat.com> <1436274549-28826-25-git-send-email-quintela@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1436274549-28826-25-git-send-email-quintela@redhat.com> Subject: Re: [Qemu-devel] [PULL 24/28] migration: Make events a capability List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Juan Quintela Cc: amit.shah@redhat.com, qemu-devel@nongnu.org On Tue, Jul 07, 2015 at 15:09:05 +0200, Juan Quintela wrote: > Make check fails with events. THis is due to the parser/lexer that it > uses. Just in case that they are more broken parsers, just only send > events when there are capabilities. > > Signed-off-by: Juan Quintela > Reviewed-by: Dr. David Alan Gilbert ... > diff --git a/qapi-schema.json b/qapi-schema.json > index 106008c..1285b8c 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -523,6 +523,9 @@ > # minimize migration traffic. The feature is disabled by default. > # (since 2.4 ) > # > +# @events: generate events for each migration state change > +# (since 2.4 ) > +# > # @auto-converge: If enabled, QEMU will automatically throttle down the guest > # to speed up convergence of RAM migration. (since 1.6) > # > @@ -530,7 +533,7 @@ > ## > { 'enum': 'MigrationCapability', > 'data': ['xbzrle', 'rdma-pin-all', 'auto-converge', 'zero-blocks', > - 'compress'] } > + 'compress', 'events'] } > Perhaps I messed something up, but I don't see this new capability documented in qmp-commands.hx and {"execute":"query-migrate-capabilities"} does not report its status: { "return": [ { "state": false, "capability": "xbzrle" }, { "state": false, "capability": "rdma-pin-all" }, { "state": false, "capability": "auto-converge" }, { "state": false, "capability": "zero-blocks" }, { "state": false, "capability": "compress" } ] } Blindly setting it does not work either: { "execute": "migrate-set-capabilities", "arguments": { "capabilities": [ { "capability": "events", "state": "true" } ] } } returns { "error": { "class": "GenericError", "desc": "Invalid parameter 'events'" } } Jirka