Received: from eggs.gnu.org ([2001:4830:134:3::10]:39078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsTsm-0005lj-6O for qemu-devel@nongnu.org; Fri, 07 Oct 2016 08:04:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsTsg-0001uW-6v for qemu-devel@nongnu.org; Fri, 07 Oct 2016 08:04:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49188) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsTsg-0001tQ-0r for qemu-devel@nongnu.org; Fri, 07 Oct 2016 08:04:02 -0400 From: Markus Armbruster References: <1475696941-8056-1-git-send-email-ehabkost@redhat.com> Date: Fri, 07 Oct 2016 14:03:57 +0200 In-Reply-To: <1475696941-8056-1-git-send-email-ehabkost@redhat.com> (Eduardo Habkost's message of "Wed, 5 Oct 2016 16:49:01 -0300") Message-ID: <87h98o9xhu.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain 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 Cc: qemu-devel@nongnu.org, 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, rth@twiddle.net, david@gibson.dropbear.id.au Eduardo Habkost writes: > 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. > > 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. > > Signed-off-by: Eduardo Habkost Applied to my qapi-next branch. Thanks!