]> rtime.felk.cvut.cz Git - jailhouse.git/commit
tools: config-create: Do not enter infinite over disabled PCI devices
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 28 Jun 2016 15:11:00 +0000 (17:11 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Tue, 28 Jun 2016 15:11:00 +0000 (17:11 +0200)
commit51f3bdab18fe814430b7d01886494f532d9f4566
tree3690374ec97b2e37539570c40cb127f9467920ae
parent011ab917a15057f52d36b1542bf3454abec55160
tools: config-create: Do not enter infinite over disabled PCI devices

If a PCI device is disabled, e.g. a secondary GPU, we may not see its
config space anymore while it is still listed. With config all 0xff, we
will then enter an infinite loop while trying to make sense of the
capability list. Prevent this, issuing a warning that we will skip this
device.

Reported-by: Thomas Pettinger <thomas.pettinger@tum.de>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
tools/jailhouse-config-create