[SeaBIOS] [Qemu-devel] [PATCH V3 1/2] hw/pci: reserve IO and mem for pci-2-pci bridges with no devices attached

2014-04-10 Thread Marcel Apfelbaum
If a pci-2-pci bridge supports hot-plug functionality but there are no devices connected to it, reserve IO/mem in order to be able to attach devices later. Do not waste space, use minimum allowed. Signed-off-by: Marcel Apfelbaum marce...@redhat.com --- src/fw/pciinit.c | 3 +++ src/hw/pci.c

Re: [SeaBIOS] [Qemu-devel] [PATCH V3 1/2] hw/pci: reserve IO and mem for pci-2-pci bridges with no devices attached

2014-04-10 Thread Michael S. Tsirkin
On Thu, Apr 10, 2014 at 04:29:40PM +0300, Marcel Apfelbaum wrote: If a pci-2-pci bridge supports hot-plug functionality but there are no devices connected to it, reserve IO/mem in order to be able to attach devices later. Do not waste space, use minimum allowed. Signed-off-by: Marcel

Re: [SeaBIOS] [Qemu-devel] [PATCH V3 1/2] hw/pci: reserve IO and mem for pci-2-pci bridges with no devices attached

2014-04-10 Thread Kevin O'Connor
On Thu, Apr 10, 2014 at 04:29:40PM +0300, Marcel Apfelbaum wrote: [...] +for (i = 0, cap = pci_config_readb(pci-bdf, PCI_CAPABILITY_LIST); + (i = 0xff) cap; + i++, cap = pci_config_readb(pci-bdf, cap + PCI_CAP_LIST_NEXT)) +if (pci_config_readb(pci-bdf, cap +

Re: [SeaBIOS] [Qemu-devel] [PATCH V3 1/2] hw/pci: reserve IO and mem for pci-2-pci bridges with no devices attached

2014-04-10 Thread Marcel Apfelbaum
On Thu, 2014-04-10 at 12:45 -0400, Kevin O'Connor wrote: On Thu, Apr 10, 2014 at 04:29:40PM +0300, Marcel Apfelbaum wrote: [...] +for (i = 0, cap = pci_config_readb(pci-bdf, PCI_CAPABILITY_LIST); + (i = 0xff) cap; + i++, cap = pci_config_readb(pci-bdf, cap +