From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cCgEw-0002wP-37 for qemu-devel@nongnu.org; Fri, 02 Dec 2016 00:18:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cCgEr-0003bs-4S for qemu-devel@nongnu.org; Fri, 02 Dec 2016 00:18:30 -0500 Message-ID: <1480655870.3459.46.camel@kernel.crashing.org> From: Benjamin Herrenschmidt Date: Fri, 02 Dec 2016 16:17:50 +1100 In-Reply-To: <20161202041835.GF10089@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> <20161123050049.GD17795@umbus.fritz.box> <1480081581.4367.65.camel@redhat.com> <20161202041835.GF10089@umbus.fritz.box> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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: David Gibson , 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 On Fri, 2016-12-02 at 15:18 +1100, David Gibson wrote: > But if you pass through multiple groups, things get weird.=C2=A0 On q35= , > you'd generally expect physically separate (different slot) devices to > appear under separate root complexes.=C2=A0 Whereas on pseries they'll > appear as siblings on a virtual bus (which makes no physical sense for > point-to-point PCI-E). It's also somewhat broken if they aren't in the same iommu domain because the way we pass the iommu buid is via the parent node, so a given iommu domain must reside below a common parent and not share it. > I suppose we could try treating all devices on pseries as though they > were chipset builtin devices on q35, which will appear on the root > PCI-E bus without root complex.=C2=A0 But I suspect that's likely to ca= use > trouble with hotplug, and it will certainly need different address > allocation from libvirt.