From: Luiz Capitulino <lcapitulino@redhat.com>
To: Wen Congyang <wency@cn.fujitsu.com>
Cc: armbru@redhat.com, qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: [PATCH] correct migrate_set_speed's args_type
Date: Wed, 24 Nov 2010 15:48:57 -0200 [thread overview]
Message-ID: <20101124154857.10657aa1@doriath> (raw)
In-Reply-To: <4CEC6A56.8080309@cn.fujitsu.com>
On Wed, 24 Nov 2010 09:28:54 +0800
Wen Congyang <wency@cn.fujitsu.com> wrote:
> At 2010年11月23日 21:31, Luiz Capitulino Write:
> > On Tue, 23 Nov 2010 10:43:48 -0200
> > Luiz Capitulino <lcapitulino@redhat.com> wrote:
> >
> >> On Tue, 23 Nov 2010 13:41:26 +0800
> >> Wen Congyang <wency@cn.fujitsu.com> 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.
>
> Do you mean the parameter passed to migrate_set_speed by json should be
> float or integer?
We used to accept both until the aforementioned commit.
> But in the function do_migrate_set_speed(), we only accept a integer.
Yes, that's a behavior change and I'd like to check with Markus that
he's aware of it. In any case, I'll apply your fix as soon as you send
me a new version with the changes I asked.
>
> >
> > 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,
> >>
> >
> >
>
next prev parent reply other threads:[~2010-11-24 17:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-23 5:41 [Qemu-devel] [PATCH] correct migrate_set_speed's args_type Wen Congyang
2010-11-23 12:43 ` [Qemu-devel] " Luiz Capitulino
2010-11-23 13:31 ` Luiz Capitulino
2010-11-24 1:28 ` Wen Congyang
2010-11-24 17:48 ` Luiz Capitulino [this message]
2010-11-25 1:06 ` [Qemu-devel] [PATCH v2] " Wen Congyang
2010-11-25 13:29 ` [Qemu-devel] " Luiz Capitulino
2010-12-10 15:20 ` [Qemu-devel] Re: [PATCH] " Markus Armbruster
2010-12-10 15:33 ` Luiz Capitulino
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101124154857.10657aa1@doriath \
--to=lcapitulino@redhat.com \
--cc=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=wency@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).