]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: Fix calculation of MMCONFIG region size
authorJan Kiszka <jan.kiszka@siemens.com>
Sun, 27 Jul 2014 15:42:24 +0000 (17:42 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Sun, 3 Aug 2014 17:58:08 +0000 (19:58 +0200)
commit00268dfd105472f43265bab372445b668ba00007
tree872b72dc3c5fbb63b5ab2ca88ca6468d36655574
parent42ff987fbc4c895c8cd961240fa852e8e3565c85
core: Fix calculation of MMCONFIG region size

The PCI Firmware Specification says: "For PCI-X and PCI Express
platforms utilizing the enhanced configuration access method, the base
address of the memory mapped configuration space always corresponds to
bus number 0 (regardless of the start bus number decoded by the host
bridge) [...]." So drop the start bus from the size calculation.

Moreover, we had an off-by-one regarding end bus to size translation.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/pci.c