From: Stefan Hajnoczi <stefanha@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org, armbru@redhat.com,
Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>,
Chrysostomos Nanakos <chris@include.gr>,
Jeff Cody <jcody@redhat.com>, Stefan Weil <sw@weilnetz.de>,
Ronnie Sahlberg <ronniesahlberg@gmail.com>,
Paolo Bonzini <pbonzini@redhat.com>, Peter Lieven <pl@kamp.de>,
Fam Zheng <famz@redhat.com>, Alberto Garcia <berto@igalia.com>,
"Richard W.M. Jones" <rjones@redhat.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Anthony Perard <anthony.perard@citrix.com>,
Gerd Hoffmann <kraxel@redhat.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
Michael Roth <mdroth@linux.vnet.ibm.com>,
Richard Henderson <rth@twiddle.net>,
Alexander Graf <agraf@suse.de>,
"open list:Block layer core" <qemu-block@nongnu.org>,
"open list:X86" <xen-devel@lists.xensource.com>
Subject: Re: [Qemu-devel] [PATCH v2 2/6] qdict: Add convenience helpers for wrapped puts
Date: Thu, 19 Jan 2017 17:36:11 +0000 [thread overview]
Message-ID: <20170119173611.GE27032@stefanha-x1.localdomain> (raw)
In-Reply-To: <20170118161653.19296-3-eblake@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2250 bytes --]
On Wed, Jan 18, 2017 at 10:16:49AM -0600, Eric Blake wrote:
> Quite a few users of qdict_put() were manually wrapping a
> non-QObject. We can make such call-sites shorter, by providing
> common macros to do the tedious work. Also shorten nearby
> qdict_put_obj(,,QOBJECT()) sequences.
>
> Signed-off-by: Eric Blake <eblake@redhat.com>
> Reviewed-by: Alberto Garcia <berto@igalia.com>
>
> ---
>
> v2: rebase to current master
>
> I'm okay if you want me to break this patch into smaller pieces.
> ---
> include/qapi/qmp/qdict.h | 8 +++
> block.c | 59 +++++++---------
> block/archipelago.c | 4 +-
> block/blkdebug.c | 6 +-
> block/blkverify.c | 11 ++-
> block/curl.c | 2 +-
> block/file-posix.c | 8 +--
> block/file-win32.c | 4 +-
> block/iscsi.c | 2 +-
> block/nbd.c | 41 ++++++-----
> block/nfs.c | 43 +++++-------
> block/null.c | 2 +-
> block/qcow2.c | 4 +-
> block/quorum.c | 13 ++--
> block/ssh.c | 16 ++---
> block/vvfat.c | 10 +--
> blockdev.c | 28 ++++----
> hw/block/xen_disk.c | 2 +-
> hw/usb/xen-usb.c | 12 ++--
> monitor.c | 18 ++---
> qapi/qmp-event.c | 2 +-
> qemu-img.c | 6 +-
> qemu-io.c | 2 +-
> qemu-nbd.c | 2 +-
> qobject/qdict.c | 2 +-
> target/s390x/cpu_models.c | 4 +-
> tests/check-qdict.c | 132 ++++++++++++++++++------------------
> tests/test-qmp-commands.c | 30 ++++----
> tests/test-qmp-event.c | 30 ++++----
> tests/test-qobject-output-visitor.c | 6 +-
> util/qemu-option.c | 6 +-
> 31 files changed, 245 insertions(+), 270 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2017-01-19 17:36 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-18 16:16 [Qemu-devel] [PATCH v2 0/6] qapi-related cleanups Eric Blake
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 1/6] pci: Use struct instead of QDict to pass back parameters Eric Blake
2017-01-18 16:57 ` Michael S. Tsirkin
2017-01-19 9:08 ` Marc-André Lureau
2017-01-19 9:23 ` Markus Armbruster
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 2/6] qdict: Add convenience helpers for wrapped puts Eric Blake
2017-01-19 9:08 ` Marc-André Lureau
2017-01-19 9:25 ` Markus Armbruster
2017-01-19 14:38 ` Eric Blake
2017-04-04 22:41 ` Eric Blake
2017-04-05 8:18 ` Richard W.M. Jones
2017-04-05 8:21 ` Julia Lawall
2017-04-05 8:24 ` Richard W.M. Jones
2017-04-05 8:38 ` Julia Lawall
2017-04-05 9:01 ` Richard W.M. Jones
2017-04-05 11:54 ` Paolo Bonzini
2017-04-05 15:16 ` Eric Blake
2017-01-19 17:36 ` Stefan Hajnoczi [this message]
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 3/6] qlist: Add convenience helpers for wrapped appends Eric Blake
2017-01-19 9:08 ` Marc-André Lureau
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 4/6] fdc-test: Avoid deprecated 'change' command Eric Blake
2017-01-19 9:30 ` Markus Armbruster
2017-01-19 14:39 ` Eric Blake
2017-04-05 2:10 ` Eric Blake
2017-04-11 8:49 ` Markus Armbruster
2017-04-11 8:58 ` Kevin Wolf
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 5/6] test-qga: Actually test 0xff sync bytes Eric Blake
2017-01-19 9:08 ` Marc-André Lureau
2017-01-19 9:45 ` Markus Armbruster
2017-01-18 16:16 ` [Qemu-devel] [PATCH v2 6/6] qapi: Promote blockdev-change-medium arguments to QAPI type Eric Blake
2017-01-19 9:07 ` Marc-André Lureau
2017-01-19 9:48 ` Markus Armbruster
2017-01-19 14:42 ` Eric Blake
2017-01-20 7:15 ` Markus Armbruster
2017-01-20 14:38 ` Eric Blake
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=20170119173611.GE27032@stefanha-x1.localdomain \
--to=stefanha@redhat.com \
--cc=agraf@suse.de \
--cc=anthony.perard@citrix.com \
--cc=armbru@redhat.com \
--cc=berto@igalia.com \
--cc=chris@include.gr \
--cc=dgilbert@redhat.com \
--cc=eblake@redhat.com \
--cc=famz@redhat.com \
--cc=jcody@redhat.com \
--cc=kraxel@redhat.com \
--cc=kwolf@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=mreitz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=pl@kamp.de \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=rjones@redhat.com \
--cc=ronniesahlberg@gmail.com \
--cc=rth@twiddle.net \
--cc=sstabellini@kernel.org \
--cc=sw@weilnetz.de \
--cc=xen-devel@lists.xensource.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).