Re: [Qemu-devel] [RFC 2/3] pci: Link pci_host_bridges with QTAILQ

2018-05-22 Thread Marcel Apfelbaum
Hi Zihan, On 05/22/2018 08:59 AM, Zihan Yang wrote: >  have no objection here, we'll see later how the modification helps. The purpose is to place the q35 host at the start of queue. In the original QLIST, when a new pxb host is added, q35 host will be bumped to the end end list. By replacin

Re: [Qemu-devel] [RFC 2/3] pci: Link pci_host_bridges with QTAILQ

2018-05-21 Thread Zihan Yang
> have no objection here, we'll see later how the modification helps. The purpose is to place the q35 host at the start of queue. In the original QLIST, when a new pxb host is added, q35 host will be bumped to the end end list. By replacing it with QTAILQ, we can always get q35 host bridges firs

Re: [Qemu-devel] [RFC 2/3] pci: Link pci_host_bridges with QTAILQ

2018-05-21 Thread Marcel Apfelbaum
On 05/20/2018 10:28 AM, Zihan Yang wrote: QLIST will place the original q35 host bridge at the end of list because it is added first. Replace it with QTAILQ to make q35 at the first of queue, which makes it convinient and compatible when there are pxb hosts other than q35 hosts I have no obje

[Qemu-devel] [RFC 2/3] pci: Link pci_host_bridges with QTAILQ

2018-05-20 Thread Zihan Yang
QLIST will place the original q35 host bridge at the end of list because it is added first. Replace it with QTAILQ to make q35 at the first of queue, which makes it convinient and compatible when there are pxb hosts other than q35 hosts Signed-off-by: Zihan Yang --- hw/pci/pci.c | 9