Received: from eggs.gnu.org ([208.118.235.92]:60793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SujVt-0005ip-5R for qemu-devel@nongnu.org; Fri, 27 Jul 2012 08:19:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SujVr-0003kP-JT for qemu-devel@nongnu.org; Fri, 27 Jul 2012 08:19:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SujVr-0003jp-C2 for qemu-devel@nongnu.org; Fri, 27 Jul 2012 08:19:23 -0400 From: Markus Armbruster References: <1343245677-20904-1-git-send-email-aliguori@us.ibm.com> <20120726124723.GG12180@redhat.com> <87394dqwh4.fsf@blackfin.pond.sub.org> <20120727114916.GU2225@redhat.com> Date: Fri, 27 Jul 2012 14:19:18 +0200 In-Reply-To: <20120727114916.GU2225@redhat.com> (Daniel P. Berrange's message of "Fri, 27 Jul 2012 12:49:16 +0100") Message-ID: <87k3xpjt15.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] vl: add -libvirt-caps option for libvirt to stop parsing help output List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: Peter Maydell , Anthony Liguori , Eric Blake , qemu-devel@nongnu.org "Daniel P. Berrange" writes: > On Fri, Jul 27, 2012 at 01:23:03PM +0200, Markus Armbruster wrote: >> >> Assuming version X (according to query-version) supports no less than >> upstream version X sounds fair. >> >> If a command line option has a corresponding QMP command, probing QMP >> for the feature suffices. For instance, query-devices gives you devices >> for -device. >> >> I'm afraid there could still be an occasional need for probing the >> command line. A simple, machine-readable command line self-description >> could satisfy it. Something like: >> >> - query-cmdline-options: JSON representation of qemu_options[], with >> unnecessary detail elided. Basically option name and whether it takes >> an argument. >> >> For options with a QemuOpts argument, we may want to add argument >> self-description. Basically its QemuOptsList, with unnecessary detail >> elided. Non-QemuOpts arguments don't get that. New structured option >> arguments should use QemuOpts anyway. >> >> Some users might prefer to get this via a command line option rather >> than a QMP command. They should ask for it. > > In my original proposal from 2 years back, I actually exposed a number > of QMP query-XXX commands via a -capabilities XXXX command line args. > On revisiting it though, I think that since we'll want to ask for > info on many different aspects, it is easier just to use QMP directly > rather than string together various command line args upfront, or > invoke QEMU multiple times. I read that as "libvirt isn't asking for it". That's fine. Whoever wants it needs to ask.