Received: from eggs.gnu.org ([2001:4830:134:3::10]:49490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dQ7Cd-00005l-LB for qemu-devel@nongnu.org; Wed, 28 Jun 2017 03:15:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dQ7Cc-0000Vd-Mb for qemu-devel@nongnu.org; Wed, 28 Jun 2017 03:15:55 -0400 From: Markus Armbruster References: <20170627163145.GC4792@noname.redhat.com> <612358d1-4be0-7118-0e88-d5fce2b19d18@redhat.com> Date: Wed, 28 Jun 2017 09:15:41 +0200 In-Reply-To: <612358d1-4be0-7118-0e88-d5fce2b19d18@redhat.com> (John Snow's message of "Tue, 27 Jun 2017 14:24:12 -0400") Message-ID: <87injgd1lu.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [Qemu-block] [RFC] QMP design: Fixing query-block and friends List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: Kevin Wolf , qemu-block@nongnu.org, mreitz@redhat.com, stefanha@redhat.com, qemu-devel@nongnu.org John Snow writes: > On 06/27/2017 12:31 PM, Kevin Wolf wrote: >> Hi, >> >> I haven't really liked query-block for a long time, but now that >> blockdev-add and -blockdev have settled, it might finally be the time to >> actually do something about it. In fact, if used together with these >> modern interfaces, our query commands are simply broken, so we have to >> fix something. >> > > [...words...] > >> >> So how do we go forward from here? >> >> I guess we could add a few hacks o fix the really urgent things, and >> just adding more information is always possible (at the cost of even >> more duplication). >> > > I think you've included this suggestion so that you can summarily > dismiss it as foolish. > >> However, it appears to me that I dislike so many thing about our current >> query commands that I'm tempted to say: Throw it all away and start >> over. >> > > Inclined to agree. The structure of the block layer has changed so much > in the past few years and this is easily seen by the gap you've outlined > here. > > We have to keep the old query commands around for a while as Eric says, > but I worry that they are so wrong and misleading as to be actively harmful. > > Maybe there's some hair trigger somewhere that if $NEW_FEATURE_X is used > to configure QEMU in some way, that the old commands can be deprecated > at runtime, such that we can more aggressively force their retirement. We warn on use of deprecated command line and HMP features. I think we want the same for QMP, within QMP. [...]