Received: from [140.186.70.92] (port=59857 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Obpxo-0005Ei-Jf for qemu-devel@nongnu.org; Thu, 22 Jul 2010 03:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Obpxn-0006zS-Gx for qemu-devel@nongnu.org; Thu, 22 Jul 2010 03:13:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20166) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Obpxn-0006zE-5V for qemu-devel@nongnu.org; Thu, 22 Jul 2010 03:13:03 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH] move 'unsafe' to end of caching modes in help References: <4C4704FC020000480009AB6E@sinclair.provo.novell.com> <4C475EC0.2000805@codemonkey.ws> <20100721213238.GB28871@redhat.com> <4C476A8A.6000707@codemonkey.ws> <20100721215833.GC28871@redhat.com> <4C478534.2020106@codemonkey.ws> Date: Thu, 22 Jul 2010 08:53:13 +0200 In-Reply-To: <4C478534.2020106@codemonkey.ws> (Anthony Liguori's message of "Wed, 21 Jul 2010 18:39:32 -0500") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, Bruce Rogers Anthony Liguori writes: > On 07/21/2010 04:58 PM, Daniel P. Berrange wrote: >>> Yes there is. Use the version number. >>> >> The version number is not suitable, because features can be removed at >> compile time and/or > > I don't see any features that libvirt would need to know about that > are disabled at compile time that aren't disabled by platform features > (i.e. being on a Linux vs. Windows host). > >> added via patch backports. > > If a distro backports a feature, it should change the QEMU version > string. If it doesn't, that's a distro problem. > >> The only reliable way is >> to query the QEMU binary to ask it what it actually supports. >> > > And you do that by asking QEMU what it's version number is. If the > version number isn't reliable because a distro backported features > without changing it, then the distro is broken. It's no different > than if we had a capabilities system and a distro added a feature > without adjusting the advertises capabilities. No, because a version number isn't a capabilities system. With a capabilities system, a vendor can add vendor-specific capabilities. Should be necessary only as a last resort, because upstream already describes itself reasonably well, so most of the time you can just backport the upstream capability. With a version, all a vendor can do is graft their their own "capability system" into the version string, say encoded as vendor version. Guaranteed to be incompatible with anyone else's "capabilitity system". Only the vendor's tools will understand it, Which means users can't use anything else. Avoiding such vendor lock in is one of the core values of the free software world.