Received: from eggs.gnu.org ([2001:4830:134:3::10]:58648) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bm4F1-0007Jl-I8 for qemu-devel@nongnu.org; Mon, 19 Sep 2016 15:28:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bm4Ez-0005SM-Bx for qemu-devel@nongnu.org; Mon, 19 Sep 2016 15:28:34 -0400 References: <1474304097-5790-1-git-send-email-kwolf@redhat.com> <1474304097-5790-5-git-send-email-kwolf@redhat.com> From: Eric Blake Message-ID: Date: Mon, 19 Sep 2016 14:28:25 -0500 MIME-Version: 1.0 In-Reply-To: <1474304097-5790-5-git-send-email-kwolf@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="LQKDEr4XNboWNkxtRqIgBfPEqRr4kVF96" Subject: Re: [Qemu-devel] [PATCH v2 04/10] block: Accept device model name for blockdev-open/close-tray List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf , qemu-block@nongnu.org Cc: mreitz@redhat.com, jsnow@redhat.com, qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --LQKDEr4XNboWNkxtRqIgBfPEqRr4kVF96 From: Eric Blake To: Kevin Wolf , qemu-block@nongnu.org Cc: mreitz@redhat.com, jsnow@redhat.com, qemu-devel@nongnu.org Message-ID: Subject: Re: [PATCH v2 04/10] block: Accept device model name for blockdev-open/close-tray References: <1474304097-5790-1-git-send-email-kwolf@redhat.com> <1474304097-5790-5-git-send-email-kwolf@redhat.com> In-Reply-To: <1474304097-5790-5-git-send-email-kwolf@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/19/2016 11:54 AM, Kevin Wolf wrote: > In order to remove the necessity to use BlockBackend names in the > external API, we want to allow qdev device names in all device related > commands. >=20 > This converts blockdev-open/close-tray to accept a qdev device name. >=20 > Signed-off-by: Kevin Wolf > --- > blockdev.c | 61 +++++++++++++++++++++++++++++++++++++++-----= -------- > qapi/block-core.json | 14 ++++++++---- > qmp-commands.hx | 16 ++++++++------ > 3 files changed, 66 insertions(+), 25 deletions(-) >=20 > +++ b/qmp-commands.hx > @@ -4295,7 +4295,7 @@ EQMP > =20 > { > .name =3D "blockdev-open-tray", > - .args_type =3D "device:s,force:b?", > + .args_type =3D "device:s?,id:s?,force:b?", > .mhandler.cmd_new =3D qmp_marshal_blockdev_open_tray, > }, Let the merge conflicts begin! Commit 33e1666b has landed. > @@ -4329,7 +4331,7 @@ Arguments: > Example: > =20 > -> { "execute": "blockdev-open-tray", > - "arguments": { "device": "ide1-cd0" } } > + "arguments": { "id": "ide0-1-0" } } The changes to the examples look good. Overall, I'm fine with: Reviewed-by: Eric Blake but I'm afraid it may be easiest for you to respin v3 and do the rebase work here and elsewhere in the series. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --LQKDEr4XNboWNkxtRqIgBfPEqRr4kVF96 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX4DxZAAoJEKeha0olJ0NqEdsH/3gSqJLHyCmniUfrAh+lNKWL 9Lam+mCAr3IjmLHqzcz+dtXdL5iMmZJEFgW/GAyumyMnTsIrHZ67C2pGkuMi7Js7 Iyifl5mMqknBm1SoR0s/BcMumW39sgYRbmelP66YorntEzP4HE5vAklO+rGd9nmp 5+66ZdaJM+MGFBalWe3oLPtIMUNDGJxUiYwzMopr0nlcsXamULGSLGxVmHU7c+U9 KhFTacVAalBTN+s8UlAuAy4dgpnb5wDc/x6VnNhwcChQggllvDLJj41WcssrbxlT PIPNMxl+vFiO36Fxdz2/MF+tBBN1RijRfglGTchFtV39J7XIp2e0lNAovDENodQ= =a2/1 -----END PGP SIGNATURE----- --LQKDEr4XNboWNkxtRqIgBfPEqRr4kVF96--