Received: from eggs.gnu.org ([2001:4830:134:3::10]:59358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fui3Q-0006Jf-En for qemu-devel@nongnu.org; Tue, 28 Aug 2018 13:45:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fui3N-0005yS-IE for qemu-devel@nongnu.org; Tue, 28 Aug 2018 13:45:24 -0400 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]:37249) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fui3K-0005Xc-Es for qemu-devel@nongnu.org; Tue, 28 Aug 2018 13:45:19 -0400 Received: by mail-qt0-x241.google.com with SMTP id n6-v6so2684230qtl.4 for ; Tue, 28 Aug 2018 10:45:09 -0700 (PDT) Date: Tue, 28 Aug 2018 13:45:07 -0400 From: Kevin O'Connor Message-ID: <20180828174506.GB8674@morn.lan> References: <1533793434-7614-1-git-send-email-whois.zihan.yang@gmail.com> <20180827070406.t525gr43qpu7wpsj@sirius.home.kraxel.org> <5f5dc082-7053-d6b9-b01f-fffba1847ba5@gmail.com> <20180828060752.mmsd7x7uobqm2gsr@sirius.home.kraxel.org> <8b232ca6-4643-24c7-d93d-589a452d0785@gmail.com> <20180828101458.pnsldezdzp6tdulp@sirius.home.kraxel.org> <20180828170203.GA1018@morn.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum Cc: Gerd Hoffmann , seabios@seabios.org, qemu-devel@nongnu.org, Zihan Yang , "Michael S. Tsirkin" On Tue, Aug 28, 2018 at 08:17:19PM +0300, Marcel Apfelbaum wrote: > On 08/28/2018 08:02 PM, Kevin O'Connor wrote: > > On Tue, Aug 28, 2018 at 12:14:58PM +0200, Gerd Hoffmann wrote: > > > > > Where is the pxb-pcie device? 0000:$somewhere? Or $domain:00:00.0? > > > > 0000:$somewhere (On PCI domain 0) > > > Cool, so we don't have an chicken-and-egg issue. > > > > > > > > If we can access pxb-pcie registers before configuring MMCFG then yes, > > > > > we should use pxb-pcie registers for that. > > > > Yes, we can. > > > Ok, so we can configure mmcfg as hidden pci bar, simliar to the q35 > > > mmcfg. Any configuration hints can be passed as pci vendor capability > > > (simliar to the bridge window size hints), if needed. > > Just so I understand, the proposal is to have SeaBIOS search for > > pxb-pcie devices on the main PCI bus and allocate address space for > > each. (These devices would not be considered pci buses in the > > traditional sense.) Then SeaBIOS will traverse that address space > > (MMCFG) and allocate BARs (both address space and io space) for the > > PCI devices found in that address space. Finally, QEMU will take all > > those allocations and use it when generating the ACPI tables. > > > > Did I get that right? > > Yes, the pxb-pcie exposes a new PCI root bus, but we want it > in a different PCI domain. This is done in order to remove the > 256 PCI Express devices limitation on a PCI Express machine. > > Does the plan sounds sane? It sounds okay to me. Separately, we could "dust off" the SeaBIOS PAE patches if we want to place the address space allocations above 4GB. -Kevin