From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYaYj-0007ZP-B9 for qemu-devel@nongnu.org; Fri, 11 Apr 2014 08:27:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYaYe-0005ki-3y for qemu-devel@nongnu.org; Fri, 11 Apr 2014 08:27:53 -0400 Message-ID: <5347DFB9.1070401@redhat.com> Date: Fri, 11 Apr 2014 06:27:37 -0600 From: Eric Blake MIME-Version: 1.0 References: <49b80c368134449bb2b9093204aef6b6@BL2PR03MB210.namprd03.prod.outlook.com> <53170DFB.5050005@ozlabs.ru> <53172815.50806@redhat.com> <20140305134011.GH1993@redhat.com> <531730D8.6010607@redhat.com> <20140305142134.GI1993@redhat.com> <531735C3.3010203@redhat.com> <20140410092437.GA7746@redhat.com> <5347D4A8.3040708@ozlabs.ru> In-Reply-To: <5347D4A8.3040708@ozlabs.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1Gpn9mQBPW8PrOVDqwAgdu4WDaGihgxwk" Subject: Re: [Qemu-devel] QEMU: PCI bus name on PowerPC platforms List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy , "Daniel P. Berrange" , Paolo Bonzini Cc: "Hong-Hua.Yin@freescale.com" , "qemu-devel@nongnu.org" , Li Zhang , "agraf@suse.de" , "qemu-ppc@nongnu.org" , "david@gibson.dropbear.id.au" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1Gpn9mQBPW8PrOVDqwAgdu4WDaGihgxwk Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 04/11/2014 05:40 AM, Alexey Kardashevskiy wrote: >> but AFAICT nothing got merged to change this for all the other boards = as >> discussed here :-( This is painful for libvirt since we have todo eve= n >> more hacks triggered off machine names now, instead of being able to >> rely on pci.0 naming as we hoped. >=20 > Sorry, I am missing the point. > How could making a platform similar to many others force you to do more= > hacks, not less? As mentioned in the thread here: https://lists.gnu.org/archive/html/qemu-devel/2014-04/threads.html#01565 If there is a way to query via QMP to see which naming scheme is in effect, there are no hacks involved - we just ask and get it right. If ALL platforms behave identically as of a certain release, we have a minimal hack - catering to releases older than that, where a downstream backport may have to tweak how we detect older releases, but it is only a single place to be hacked. But with just this patch, you have caused the situation where it is neither introspectible, nor consistent across qemu versions. The only way to code that up in libvirt is to do MULTIPLE version checks and correlate it with architecture checks - and that's the hack we don't want to have to support. Every single version check done in lieu of proper feature introspection is yet one more pain point when features get backported across version numbers downstream. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --1Gpn9mQBPW8PrOVDqwAgdu4WDaGihgxwk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTR9+5AAoJEKeha0olJ0NquC8H/RHvWe2Zo6q/mm2rTU5S9DHv VH+FqfY4uVQFJK5PEOzNax7cu5kBnP0Ls50uQG1QXootxnJchdJqRId/0fb5btPo R1nbzGk3BTdm1j1DuhB/U9Z/42CP8ZuJSMn6AGtZMxJoHpcuO7nsAw3LMPh0Vy9o 3/WJZTuL4932KU9S9hE1sgvm0M3btX1V9kffqiz53mmIyuK+zGqoffHFlvflxevj AQhj7XbLKzaW06XDcnDs5zx5+vYtMa1UZ8EefV0oHaZOOK40rvuyjYM8zL0HbW51 +0PSBgu0L7pteD7WK3MCZzWF0TXoxeV/8puDE+dR7co72r+q+XcjguYL11ylBWQ= =941w -----END PGP SIGNATURE----- --1Gpn9mQBPW8PrOVDqwAgdu4WDaGihgxwk--