All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Bug 1462131 <1462131@bugs.launchpad.net>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Bug 1462131] Re: qemu mainline regression with xen-unstable: unable to start QMP
Date: Fri, 05 Jun 2015 11:51:00 +0200	[thread overview]
Message-ID: <55717104.2080401@redhat.com> (raw)
In-Reply-To: <20150604221517.29692.17739.malone@gac.canonical.com>



On 05/06/2015 00:15, Don Slutz wrote:
> QMP also uses id, but apparently removes it up front before calling into
> this function; so another fix would be having xen remove it up front.

No, we don't break users.

This patch fixes Xen but not virt-test, which relies on ids.  It greps
the QMP output for an ID in order to find the output of query-commands.

Paolo

>> > 
>> > Signed-off-by: Don Slutz <dslutz@verizon.com>
>> > ---
>> >  monitor.c | 9 +++++++++
>> >  1 file changed, 9 insertions(+)
>> > 
>> > diff --git a/monitor.c b/monitor.c
>> > index c7baa91..e9a0747 100644
>> > --- a/monitor.c
>> > +++ b/monitor.c
>> > @@ -4955,6 +4955,15 @@ static QDict *qmp_check_input_obj(QObject
>> > *input_obj, Error **errp)
>> >                            "arguments", "object");
>> >                  return NULL;
>> >              }
>> > +        } else if (!strcmp(arg_name, "id")) {
>> > +            /*
>> > +             * Fixup Xen's usage. Just ignore the "id". See point #5
>> > +             * above.  This was an attempt at an asynchronous
>> > +             * command interface.  However commit
>> > +             * 65207c59d99f2260c5f1d3b9c491146616a522aa is
>> > +             * wrong. Xen does not expect an error when it passes in
>> > +             * "id":1, so just continue to ignore it.
>> > +             */
> The comment is a bit verbose, particularly since 'id' is a
> well-established usage pattern in QMP.  Also, we don't need to call out
> why it changed in the comment here, the commit message is sufficient for
> that.
> 

  reply	other threads:[~2015-06-05  9:51 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-04 22:09 [Qemu-devel] [Bug 1462131] [NEW] qemu mainline regression with xen-unstable: unable to start QMP Don Slutz
2015-06-04 22:15 ` [Qemu-devel] [Bug 1462131] " Don Slutz
2015-06-05  9:51   ` Paolo Bonzini [this message]
2015-06-05  7:55 ` Fantu
2015-06-05  8:22 ` [Qemu-devel] [Bug 1462131] [NEW] " Wen Congyang
2015-06-08  8:05   ` Markus Armbruster
2015-06-08 13:23 ` [Qemu-devel] [Bug 1462131] " Don Slutz

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=55717104.2080401@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=1462131@bugs.launchpad.net \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.