Received: from eggs.gnu.org ([2001:4830:134:3::10]:44798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLXdh-00074R-DH for qemu-devel@nongnu.org; Wed, 23 May 2018 13:33:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLXdc-0005P8-Dt for qemu-devel@nongnu.org; Wed, 23 May 2018 13:33:29 -0400 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]:34570) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fLXdc-0005Oy-6d for qemu-devel@nongnu.org; Wed, 23 May 2018 13:33:24 -0400 Received: by mail-wr0-x243.google.com with SMTP id j1-v6so17003847wrm.1 for ; Wed, 23 May 2018 10:33:24 -0700 (PDT) References: <1526801333-30613-1-git-send-email-whois.zihan.yang@gmail.com> <1526801333-30613-4-git-send-email-whois.zihan.yang@gmail.com> <17a3765f-b835-2d45-e8b9-ffd4aff909f9@redhat.com> <20180523023944-mutt-send-email-mst@kernel.org> From: Marcel Apfelbaum Message-ID: <420701e8-5d6c-d8a7-60cb-5065ef7fbdc9@gmail.com> Date: Wed, 23 May 2018 20:33:19 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Subject: Re: [Qemu-devel] [RFC 3/3] acpi-build: allocate mcfg for multiple host bridges List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Zihan Yang , lersek@redhat.com, qemu-devel@nongnu.org Cc: Igor Mammedov , alex.williamson@redhat.com, eauger@redhat.com, drjones@redhat.com, wei@redhat.com On 05/23/2018 02:11 PM, Zihan Yang wrote: > Hi all, > > Thanks for all your comments and suggestions, I wasn't expecting so > many professional > reviewers. Some of the things you mentioned are beyond my knowledge > right now. > Please correct me if I'm wrong below. > > The original purpose was just to support multiple segments in Intel > Q35 archtecure > for PCIe topology, which makes bus number a less scarce resource. The > patches are > very primitive and many things are left for firmware to finish(the > initial plan was > to implement it in SeaBIOS), the AML part in QEMU is not finished > either. I'm not > familiar with OVMF or edk2, so there is no plan to touch it yet, but > it seems not > necessary since it already supports multi-segment in the end. > > Also, in this patch the assumption is one domain per host bridge, > described by '_SEG()' > in AML, which means a ECAM range per host bridge, but that should be > configurable > if the user prefers to staying in the same domain, I guess? Yes. > > I'd like to list a few things you've discussed to confirm I don't get > it wrong > > * ARI enlarges the number of functions, but they does not solve the > hot-pluggable issue. >   The multifunction PCIe endpoints cannot span PCIe domains Right > * IOMMUs cannot span domains either, so bringing new domains > introduces the need >   to add a VT-d DHRD or vIOMMU per PCIe domain Not really, you may have PCI domains not associated to an vIOMMU. As a first step, you should not deal with it. The IOMMU can't span over multiple domains, yes. > * 64-bit space is crowded and there are no standards within QEMU for > placing per >   domain 64-bit MMIO and MMCFG ranges Yes, but we do have some layout for the "over 4G" area and we can continue building on it. > * NUMA modeling seems to be a stronger motivation than the limitation > of 256 but >   nubmers, that each NUMA node holds its own PCI(e) sub-hierarchy No, the 256 devices limitation is the biggest issue we are trying to solve. > * We cannot put ECAM arbitrarily high because guest's PA width is > limited by host's >   when EPT is enabled. Indeed, we should be careful about the size the MMCFGs to not exceed CPU addressable bits. > * Compatibility issues in platforms that do not have MCFG table at all > (perhaps we limit >   it to only q35 at present in which MCFG is present). > For sure. > Based on your discussions, I guess this proposal is still worth doing > overall, but it seems > many restrictions should be imposed to be compatible with some > complicated situations. > Correct. > Please correct me if I get anything wrong or missing. > You are on the right path, this discussion is meant to help you understand wider concerns and make you aware of different constrains we didn't think about. Good luck with the next version! Thanks, Marcel > Thanks > Zihan