From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52237) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9Psz-0005zy-Jd for qemu-devel@nongnu.org; Wed, 23 Nov 2016 00:14:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9Psv-000714-EQ for qemu-devel@nongnu.org; Wed, 23 Nov 2016 00:14:21 -0500 Date: Wed, 23 Nov 2016 16:00:49 +1100 From: David Gibson Message-ID: <20161123050049.GD17795@umbus.fritz.box> References: <1477641400-23292-1-git-send-email-aik@ozlabs.ru> <20161028120712.4a911866@bahia> <20161031025314.GJ18226@umbus.fritz.box> <20161101024634.GA14860@umbus.fritz.box> <1479218565.3319.18.camel@redhat.com> <3353ecef-2308-13e3-025d-df41b2e89945@ozlabs.ru> <1479457042.1391.11.camel@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0IvGJv3f9h+YhkrH" Content-Disposition: inline In-Reply-To: <1479457042.1391.11.camel@redhat.com> Subject: Re: [Qemu-devel] [Qemu-ppc] [RFC PATCH qemu] spapr_pci: Create PCI-express root bus by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrea Bolognani Cc: Alexey Kardashevskiy , Greg Kurz , Paolo Bonzini , Alex Williamson , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, libvir-list@redhat.com, Michael Roth --0IvGJv3f9h+YhkrH Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 18, 2016 at 09:17:22AM +0100, Andrea Bolognani wrote: > On Thu, 2016-11-17 at 13:02 +1100, Alexey Kardashevskiy wrote: > > > That said, considering that a big part of the PCI address > > > allocation logic is based off whether the specific machine > > > type exposes a legay PCI Root Bus or a PCI Express Root Bus, > > > libvirt will need a way to be able to tell which one is which. > > >=A0 > > > Version checks are pretty much out of the question, as they > > > fail as soon as downstream releases enter the picture. A > > > few ways we could deal with the situation: > > >=A0 > > >=A0=A0=A01) switch to PCI Express on newer machine types, and > > >=A0=A0=A0=A0=A0=A0expose some sort of capability through QMP so that > > >=A0=A0=A0=A0=A0=A0libvirt can know about the switch >=20 > [...] > > > Option 1) would break horribly with existing libvirt > > > versions, and so would Option 2) if we default to using > >=A0 > > How exactly 1) will break libvirt? Migrating from pseries-2.7 to > > pseries-2.8 does not work anyway, and machines are allowed to behave > > different from version to version, what distinct difference will using > > "pseries-pcie-X.Y" make? >=20 > Existing libvirt versions assume that pseries guests have > a legacy PCI root bus, and will base their PCI address > allocation / PCI topology decisions on that fact: they > will, for example, use legacy PCI bridges. Um.. yeah.. trouble is libvirt's PCI-E address allocation probably won't work for spapr PCI-E either, because of the weird PCI-E without root complex presentation we get in PAPR. > So if you used a new QEMU binary with a libvirt version > that doesn't know about the change, new guests would end up > using the wrong controllers. Existing guests would not be > affected as they would stick with the older machine types, > of course. >=20 > > I believe after we introduced the very first > > pseries-pcie-X.Y, we will just stop adding new pseries-X.Y. >=20 > Isn't i440fx still being updated despite the fact that q35 > exists? Granted, there are a lot more differences between > those two machine types than just the root bus type. Right, there are heaps of differences between i440fx and q35, and reasons to keep both updated. For pseries we have neither the impetus nor the resources to maintain two different machine type variant, where the only difference is between legacy PCI and weirdly presented PCI-E. > Even if no newer pseries-x.y were to be added after > introducing pseries-pcie, you could still easily create > guests that use either root bus, so no loss in functionality. >=20 > --=A0 > Andrea Bolognani / Red Hat / Virtualization >=20 --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --0IvGJv3f9h+YhkrH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYNSJ/AAoJEGw4ysog2bOSPBoP/jL0r8EmiZMfJyfgU4+pLoiU iehkVziebB0tLx/jdGbyZYbDh8vj2+cGqtQusZ9Jra8JfdvEcUAuC0Gsxw9LMbsD 0Dq327oe7lKEFJdBtuFPmIySB9Ok6ACoIqGNuQRRFm4buC7ZbqrkRO+Lw5s5IGa9 nfOLFZbpmKwoOugAN8MDFR7MxX5CVbtB59Dr8+cFpPduilbCL8UvMnKSs19MpldZ +9mEcfC2f+qZhGs8ySjN41uBBLjpumViE9a2D52q2hVzkeK+uB4BpfJh94V/8saW 2tmafDO3BEUtmaaZjvWQmHd/kjJkWAyzP3fk+ihAeU+Pkr+Y6YSWDt92MvOqrLlN 1jaHsL/Ebfgnycf352lr297/K0bX9QSafoQqNpRznsG/CxtY2WgpGJi96uxeyJiR G3+go/XejpNN3iU9X3VGYjleLiPHoe3DtX5qut6GOjXnO27iLWUPqYLDJboz3Er2 09M063/KhlyCv+3lWU6wWT+yrw0vsUmodGWZMMn2E9V/eJ4VY3hK6kc/IvSYDvPc Ebrh99wT1bO/bLJEpAH7g1PBhbBhcZ5r2aaes4ITsMS11++Hg7ftVIS87kl9vLxY qcr7n4BWRpTocojVybl4dI1myNCxXfATMXwkUk4nG9ArlxIKuqPnG7k8WYRFtiFs Rtk3/2e9FqhBUvY80+TD =XKfm -----END PGP SIGNATURE----- --0IvGJv3f9h+YhkrH--