]> Git Repo - qemu.git/commit
pci: allow 0 address for PCI IO/MEM regions
authorLaurent Vivier <[email protected]>
Fri, 24 Jul 2015 08:35:13 +0000 (10:35 +0200)
committerMichael S. Tsirkin <[email protected]>
Thu, 13 Aug 2015 11:08:29 +0000 (14:08 +0300)
commite402463073ae51d00dc6cf98556e2f5c4b008a31
tree2f1d897da56da6ee0b038c6285378d9ecce88391
parentc8d163bc9e037ec32b2250b2d7950b1d1bc3fd61
pci: allow 0 address for PCI IO/MEM regions

Some kernels program a 0 address for io regions. PCI 3.0 spec
section 6.2.5.1 doesn't seem to disallow this.

based on patch by Michael Roth <[email protected]>

Add pci_allow_0_addr in MachineClass to conditionally
allow addr 0 for pseries, as this can break other architectures.

This patch allows to hotplug PCI card in pseries machine, as the first
added card BAR0 is always set to 0 address.

This as a temporary hack, waiting to fix PCI memory priorities for more
machine types...

Signed-off-by: Laurent Vivier <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/pci/pci.c
hw/ppc/spapr.c
include/hw/boards.h
This page took 0.026441 seconds and 4 git commands to generate.