Received: from eggs.gnu.org ([2001:4830:134:3::10]:48750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brsEu-0004NY-C1 for qemu-devel@nongnu.org; Wed, 05 Oct 2016 15:52:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brsEq-0004St-3c for qemu-devel@nongnu.org; Wed, 05 Oct 2016 15:52:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brsEp-0004SR-QW for qemu-devel@nongnu.org; Wed, 05 Oct 2016 15:52:24 -0400 References: <1475696941-8056-1-git-send-email-ehabkost@redhat.com> From: Eric Blake Message-ID: Date: Wed, 5 Oct 2016 14:52:20 -0500 MIME-Version: 1.0 In-Reply-To: <1475696941-8056-1-git-send-email-ehabkost@redhat.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oRC6O2gXEukUUbEKOscVOosr4FNaF5AqA" Subject: Re: [Qemu-devel] [PATCH v2] qmp: Disable query-cpu-* commands when they're unavailable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost , qemu-devel@nongnu.org, armbru@redhat.com Cc: peter.maydell@linaro.org, dahi@linux.vnet.ibm.com, agraf@suse.de, borntraeger@de.ibm.com, jjherne@linux.vnet.ibm.com, cornelia.huck@de.ibm.com, pbonzini@redhat.com, jdenemar@redhat.com, david@gibson.dropbear.id.au, rth@twiddle.net This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oRC6O2gXEukUUbEKOscVOosr4FNaF5AqA From: Eric Blake To: Eduardo Habkost , qemu-devel@nongnu.org, armbru@redhat.com Cc: peter.maydell@linaro.org, dahi@linux.vnet.ibm.com, agraf@suse.de, borntraeger@de.ibm.com, jjherne@linux.vnet.ibm.com, cornelia.huck@de.ibm.com, pbonzini@redhat.com, jdenemar@redhat.com, david@gibson.dropbear.id.au, rth@twiddle.net Message-ID: Subject: Re: [PATCH v2] qmp: Disable query-cpu-* commands when they're unavailable References: <1475696941-8056-1-git-send-email-ehabkost@redhat.com> In-Reply-To: <1475696941-8056-1-git-send-email-ehabkost@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 10/05/2016 02:49 PM, Eduardo Habkost wrote: > Instead of requiring clients to actually call the query-cpu-* > commands to find out if they are implemented, remove them from > the output of "query-commands", so clients know they are not > available. >=20 > This is implemented by extending the existing hack at > qmp_unregister_commands_hack(). I wish I could avoid adding even > more #ifdefs to that code, but that's the solution we have today. >=20 > Signed-off-by: Eduardo Habkost > --- > Changes v1 -> v2: > * Instead of adding new qmp_commands_init() and > arch_qmp_commands_init() functions, simply extend the hack at > qmp_unregister_commands_hack() > --- > monitor.c | 9 +++++++++ > 1 file changed, 9 insertions(+) Reviewed-by: Eric Blake --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --oRC6O2gXEukUUbEKOscVOosr4FNaF5AqA 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/ iQEcBAEBCAAGBQJX9Vn0AAoJEKeha0olJ0NqbKkH/ierYyPfVNX0cczEDQnu1AF4 D5t7IcmeL5ynmvkrWM+elutWEol7zl0+VvZlGkMJoXhX92ntA5J/HrvCYE9h630I a6IDPZCfzU2sUfpNOl+gTbndSsYA6NsJthvbz2K2F5lPu0H2SeuQDGe4hYoQvtSy zfopyV3K6aaFpCbA4EDyaHA61nCKOLCPgmotBsgRaFZePi+hKurVyrjupWo7loGh 80PbbgbqJ9fgh1AbUFUscPptrACGj3kwtW7GTJhXJYpf47DK+YKd+rqmxqx2VjTa PWx2n0Jxwa66rb1ISGHLr6sHRxl2EFBqT+bgfpjeg5r8Sus9dMM2DgPUYgl264M= =AjE2 -----END PGP SIGNATURE----- --oRC6O2gXEukUUbEKOscVOosr4FNaF5AqA--