[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 10/14] pci: allow 0 address for PCI IO regions
From: |
Michael Roth |
Subject: |
[Qemu-devel] [PATCH 10/14] pci: allow 0 address for PCI IO regions |
Date: |
Wed, 4 Dec 2013 19:19:50 -0600 |
Some kernels program a 0 address for io regions. PCI 3.0 spec
sectio 6.2.5.1 doesn't seem to disallow this.
Signed-off-by: Michael Roth <address@hidden>
---
hw/pci/pci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index f15bbb0..fe5729c 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -1030,7 +1030,7 @@ static pcibus_t pci_bar_address(PCIDevice *d,
/* Check if 32 bit BAR wraps around explicitly.
* TODO: make priorities correct and remove this work around.
*/
- if (last_addr <= new_addr || new_addr == 0 || last_addr >= UINT32_MAX)
{
+ if (last_addr <= new_addr || last_addr >= UINT32_MAX) {
return PCI_BAR_UNMAPPED;
}
return new_addr;
--
1.7.9.5
- [Qemu-devel] [PATCH 06/14] spapr_pci: populate DRC dt entries for PHBs, (continued)
- [Qemu-devel] [PATCH 06/14] spapr_pci: populate DRC dt entries for PHBs, Michael Roth, 2013/12/04
- [Qemu-devel] [PATCH 08/14] memory: add memory_region_find_subregion, Michael Roth, 2013/12/04
- [Qemu-devel] [PATCH 09/14] pci: make pci_bar useable outside pci.c, Michael Roth, 2013/12/04
- [Qemu-devel] [PATCH 13/14] spapr_events: event-scan RTAS interface, Michael Roth, 2013/12/04
- [Qemu-devel] [PATCH 02/14] spapr_pci: add get/set-power-level RTAS interfaces, Michael Roth, 2013/12/04
- [Qemu-devel] [PATCH 07/14] spapr: add helper to retrieve a PHB/device DrcEntry, Michael Roth, 2013/12/04
- [Qemu-devel] [PATCH 14/14] spapr_pci: emit hotplug add/remove events during hotplug, Michael Roth, 2013/12/04
- [Qemu-devel] [PATCH 11/14] spapr_pci: enable basic hotplug operations, Michael Roth, 2013/12/04
- [Qemu-devel] [PATCH 10/14] pci: allow 0 address for PCI IO regions,
Michael Roth <=