From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=38159 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKsyj-0002Hj-VO for qemu-devel@nongnu.org; Tue, 23 Nov 2010 08:32:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKsyi-00086K-7G for qemu-devel@nongnu.org; Tue, 23 Nov 2010 08:32:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKsyh-000869-Rm for qemu-devel@nongnu.org; Tue, 23 Nov 2010 08:32:12 -0500 Date: Tue, 23 Nov 2010 11:31:59 -0200 From: Luiz Capitulino Message-ID: <20101123113159.4aab053a@doriath> In-Reply-To: <20101123104348.5d44e89e@doriath> References: <4CEB5406.3060300@cn.fujitsu.com> <20101123104348.5d44e89e@doriath> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] correct migrate_set_speed's args_type List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: armbru@redhat.com Cc: qemu-devel , Wen Congyang On Tue, 23 Nov 2010 10:43:48 -0200 Luiz Capitulino wrote: > On Tue, 23 Nov 2010 13:41:26 +0800 > Wen Congyang wrote: > > > The args_type of migrate_set_speed in qmp-commands.hx is wrong. > > When we set migrate speed by json, qemu will be core dumped. > > > > Signed-off-by: Wen Congyang > > Nice catch. > > Was caused by 07de3e60b05 and hence affects master only. Could you please > mention that in the commit log? Also, your email address is missing > in the signed-off-by line. There's another problem there: we used to accept a json number but now we accept only a json integer. Markus, are you aware of this change? > > > > > --- > > qmp-commands.hx | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/qmp-commands.hx b/qmp-commands.hx > > index 793cf1c..16bdb08 100644 > > --- a/qmp-commands.hx > > +++ b/qmp-commands.hx > > @@ -495,7 +495,7 @@ EQMP > > > > { > > .name = "migrate_set_speed", > > - .args_type = "value:f", > > + .args_type = "value:o", > > .params = "value", > > .help = "set maximum speed (in bytes) for migrations", > > .user_print = monitor_user_noop, >