Received: from eggs.gnu.org ([2001:4830:134:3::10]:42712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpubl-00071O-Hg for qemu-devel@nongnu.org; Fri, 30 Sep 2016 05:59:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpubh-0008JE-Iz for qemu-devel@nongnu.org; Fri, 30 Sep 2016 05:59:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37552) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpubh-0008Iy-D9 for qemu-devel@nongnu.org; Fri, 30 Sep 2016 05:59:53 -0400 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Fri, 30 Sep 2016 13:59:45 +0400 Message-Id: <20160930095948.3154-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v3 0/3] qapi: return 'missing parameter' error List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: berto@igalia.com, eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Hi, 'monitor: use qmp_dispatch()' patch broke some iotests expecting a 'missing parameter' error. This series fixes qapi visitors to return this error for all types. This series should go on top of: https://lists.gnu.org/archive/html/qemu-devel/2016-09/msg05949.html v3: - merge patch 4 (iotest fix) with patch 3 - add r-b tags v2: - add some assert() for expected values in qmp-input-visitor, making it more explicit when qmp_input_get_object() may return NULL - squash the *obj =3D NULL changes with the missing arg error patch - move qobject_to_*(qobj) calls after checking qobj !=3D NULL - update commit messages Marc-Andr=C3=A9 Lureau (3): qapi: add assert about root value qapi: assert list entry has a value qapi: return a 'missing parameter' error qapi/qmp-input-visitor.c | 72 +++++++++++++++++++++++++++++++++++-----= ------ tests/qemu-iotests/087.out | 2 +- 2 files changed, 56 insertions(+), 18 deletions(-) --=20 2.10.0