]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
pci: fix 'io hints' capability for RedHat PCI bridges
authorMarcel Apfelbaum <marcel@redhat.com>
Thu, 11 Jan 2018 20:15:12 +0000 (22:15 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 17 Jan 2018 00:39:16 +0000 (19:39 -0500)
commit14d91c353e19b7085fdbb7b2dcc43f3355665670
treefd08918b2835814ecc2e07e358557b8d7c5b5e08
parent844b86464a5cbfffb62b87808632018ca250d867
pci: fix 'io hints' capability for RedHat PCI bridges

Commit ec6cb17f (pci: enable RedHat PCI bridges to reserve additional
                 resources on PCI init)
added a new vendor specific PCI capability for RedHat PCI bridges
allowing them to reserve additional buses and/or IO/MEM space.

When adding the IO hints PCI capability to the pcie-root-port
without specifying a value for bus reservation, the subordinate bus
computation is wrong and the guest kernel gets messed up.

Fix it by returning to prev code if the value for bus
reservation is not set.

Removed also a wrong debug print "PCI: invalid QEMU resource reserve
cap offset" which appears if the 'IO hints' capability is not present.

Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
src/fw/pciinit.c