Received: from eggs.gnu.org ([2001:4830:134:3::10]:33368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9VYQ-00031h-IE for qemu-devel@nongnu.org; Mon, 08 Oct 2018 09:26:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9VYN-000175-CK for qemu-devel@nongnu.org; Mon, 08 Oct 2018 09:26:34 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39210) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g9VYN-00011d-5i for qemu-devel@nongnu.org; Mon, 08 Oct 2018 09:26:31 -0400 From: Markus Armbruster References: <20180829134043.31706-1-marcandre.lureau@redhat.com> <20180829134043.31706-11-marcandre.lureau@redhat.com> <87o9dhiiuj.fsf@dusky.pond.sub.org> Date: Mon, 08 Oct 2018 15:26:28 +0200 In-Reply-To: (=?utf-8?Q?=22Marc-Andr=C3=A9?= Lureau"'s message of "Tue, 2 Oct 2018 23:06:11 +0400") Message-ID: <87lg7836yj.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 10/10] qmp: common 'id' handling & make QGA conform to QMP spec List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: Michael Roth , QEMU Marc-Andr=C3=A9 Lureau writes: > Hi > > On Sat, Sep 1, 2018 at 4:06 PM Marc-Andr=C3=A9 Lureau > wrote: >> >> On Sat, Sep 1, 2018 at 12:59 PM, Markus Armbruster w= rote: >> > Marc-Andr=C3=A9 Lureau writes: >> > >> >> Let qmp_dispatch() copy the 'id' field. That way any qmp client will >> >> conform to the specification, including QGA. Furthermore, it >> >> simplifies the work for qemu monitor. >> >> >> >> Signed-off-by: Marc-Andr=C3=A9 Lureau >> >> Reviewed-by: Markus Armbruster >> >> Reviewed-by: Michael Roth >> >> --- >> >> monitor.c | 33 ++++++++++++--------------------- >> >> qapi/qmp-dispatch.c | 10 ++++++++-- >> >> tests/test-qga.c | 13 +++++-------- >> >> 3 files changed, 25 insertions(+), 31 deletions(-) >> > >> > Let's squash in >> > >> > diff --git a/docs/interop/qmp-spec.txt b/docs/interop/qmp-spec.txt >> > index 8f7da0245d..5fdfb2a4d0 100644 >> > --- a/docs/interop/qmp-spec.txt >> > +++ b/docs/interop/qmp-spec.txt >> > @@ -109,6 +109,7 @@ or >> > command execution, it is optional and will be part of the response >> > if provided. The "id" member can be any json-value. A json-number >> > incremented for each successive command works fine. >> > +- Older versions of the QEMU Guest agent do not support "id". >> >> Good idea. Are you taking and updating the patch, or Michael? >> > > any of you taking the patch? Quoting myself (Message-ID: <871sabf999.fsf@dusky.pond.sub.org>): I left the QGA stuff out of my "[PULL 0/6] Monitor patches for 2018-09-01". If it's still pending when I do my next pull request for QMP stuff, I can include it. Of course, Michael is welcome to take it earlier.