Received: from eggs.gnu.org ([2001:4830:134:3::10]:60932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG1Ty-0002MJ-DI for qemu-devel@nongnu.org; Tue, 27 Jan 2015 03:26:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YG1Tt-0003YF-FJ for qemu-devel@nongnu.org; Tue, 27 Jan 2015 03:26:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YG1Tt-0003YB-85 for qemu-devel@nongnu.org; Tue, 27 Jan 2015 03:26:41 -0500 From: Markus Armbruster References: <1508539.cfTQauU1Ry@javinlg> <17343709.DGNVESbVIr@javinlg> <54C27602.5070500@redhat.com> <158031087.SthlJV7jIF@javinlg> <54C66A60.3000204@redhat.com> Date: Tue, 27 Jan 2015 09:26:11 +0100 In-Reply-To: <54C66A60.3000204@redhat.com> (Eric Blake's message of "Mon, 26 Jan 2015 09:25:04 -0700") Message-ID: <87r3ug8w9o.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [Spice-devel] [PATCH] [RFC] LZ4 compression option for SPICE List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, Javier Celaya , devel@flexvm.es, Gerd Hoffmann , Anthony Liguori , spice-devel Eric Blake writes: > On 01/26/2015 01:48 AM, Javier Celaya wrote: >> Sorry, I forgot to patch the command-line help. Hope it helps. >> > >>>> >>>> Recently, SPICE included the lz4 compression algorithm. This patch adds >>>> a command line option to select it. > >>> >>> How is libvirt going to introspect whether the command line supports >>> this option? Is there some QMP command that lists the set of valid >>> compression formats understood by a given qemu binary? > > No, patching the command line --help does NOT help libvirt. It needs to > be discoverable via QMP to be introspectible, as scraping --help output > is not machine-friendly. (That said, you DO want to expose it in --help > output; I'm just complaining that --help output alone is not enough). We should really, really, really provide access to (the relevant subset of) the QAPI schema over QMP! Until we get that, useful progress is delayed by problems like this one, and we keep growing special-purpose solutions to problems like this one.