Re: [Qemu-devel] [SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device

2018-08-28 Thread Kevin O'Connor
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? :$somewhere? Or $domain:00:00.0? > > > > :$somewhere (On PCI

Re: [Qemu-devel] [SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device

2018-08-28 Thread Marcel Apfelbaum
Hi Kevin, On 08/28/2018 08:02 PM, Kevin O'Connor wrote: On Tue, Aug 28, 2018 at 12:14:58PM +0200, Gerd Hoffmann wrote: Hi, Where is the pxb-pcie device? :$somewhere? Or $domain:00:00.0? :$somewhere (On PCI domain 0) Cool, so we don't have an chicken-and-egg issue. If we

Re: [Qemu-devel] [SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device

2018-08-28 Thread Kevin O'Connor
On Tue, Aug 28, 2018 at 12:14:58PM +0200, Gerd Hoffmann wrote: > Hi, > > > > Where is the pxb-pcie device? :$somewhere? Or $domain:00:00.0? > > > > :$somewhere (On PCI domain 0) > > Cool, so we don't have an chicken-and-egg issue. > > > > If we can access pxb-pcie registers before

Re: [Qemu-devel] [SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device

2018-08-28 Thread Gerd Hoffmann
Hi, > > Where is the pxb-pcie device? :$somewhere? Or $domain:00:00.0? > > :$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. > >

Re: [Qemu-devel] [SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device

2018-08-28 Thread Marcel Apfelbaum
Hi Gerd, On 08/28/2018 09:07 AM, Gerd Hoffmann wrote: Hi, Since we will not use all 256 buses of an extra PCI domain, I think this space will allow us to support more PCI domains. Depends on the use case I guess. If you just need many pcie devices this probably doesn't help. If you want

Re: [Qemu-devel] [SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device

2018-08-28 Thread Gerd Hoffmann
Hi, > Since we will not use all 256 buses of an extra PCI domain, > I think this space will allow us to support more PCI domains. Depends on the use case I guess. If you just need many pcie devices this probably doesn't help. If you want them for numa support then yes, more domains with less

Re: [Qemu-devel] [SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device

2018-08-27 Thread Gerd Hoffmann
On Tue, Aug 28, 2018 at 04:12:17AM +, Zihan Yang wrote: > Gerd Hoffmann 于2018年8月27日周一 上午7:04写道: > > > > Hi, > > > > > > However, QEMU only binds port 0xcf8 and 0xcfc to > > > > bus pcie.0. To avoid bus confliction, we should use other port pairs for > > > > busses under new domains. > > >

Re: [Qemu-devel] [SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device

2018-08-27 Thread Marcel Apfelbaum
Hi Gerd On 08/28/2018 07:12 AM, Zihan Yang wrote: Gerd Hoffmann 于2018年8月27日周一 上午7:04写道: Hi, However, QEMU only binds port 0xcf8 and 0xcfc to bus pcie.0. To avoid bus confliction, we should use other port pairs for busses under new domains. I would skip support for IO based

Re: [Qemu-devel] [SeaBIOS] [RFC v2 0/3] Support multiple pci domains in pci_device

2018-08-27 Thread Zihan Yang
Gerd Hoffmann 于2018年8月27日周一 上午7:04写道: > > Hi, > > > > However, QEMU only binds port 0xcf8 and 0xcfc to > > > bus pcie.0. To avoid bus confliction, we should use other port pairs for > > > busses under new domains. > > > > I would skip support for IO based configuration and use only MMCONFIG >