Received: from eggs.gnu.org ([2001:4830:134:3::10]:42576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brUMU-0001tv-SD for qemu-devel@nongnu.org; Tue, 04 Oct 2016 14:22:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brUMQ-0003PL-Bk for qemu-devel@nongnu.org; Tue, 04 Oct 2016 14:22:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34796) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brUMQ-0003Ou-5r for qemu-devel@nongnu.org; Tue, 04 Oct 2016 14:22:38 -0400 Date: Tue, 4 Oct 2016 15:22:34 -0300 From: Eduardo Habkost Message-ID: <20161004182234.GH3877@thinpad.lan.raisama.net> References: <20161003190442.GE3877@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [libvirt] QMP stubs: how to return "not implemented" errors? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, Markus Armbruster , libvir-list@redhat.com, David Hildenbrand , Jiri Denemark , "Jason J. Herne" On Mon, Oct 03, 2016 at 03:15:39PM -0500, Eric Blake wrote: [...] > > 3.2) Removing the unimplemented command from query-commands only > > (by calling qmp_disable_command()), but keeping it on the QAPI > > schema. I am not sure it's OK to do that. If it is, this > > sounds like the simplest solution. > > We already have existing commands in this category, and it is > conceptually the easiest (if query-commands doesn't list the command, > then the command doesn't work even if the introspection still shows it). [...] Which commands are already in this category? I don't see any qmp_disable_command() calls on the tree except for guest agent code. -- Eduardo