When adding new devices Linux will access the PCI root bridge. Introduce
a HACK that will ignore the access and not treat it as a violation.
Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
return PCI_ACCESS_PERFORM;
}
+ // HACK to allow PCI bus rescanning in root-cell
+ if (device->info->type == JAILHOUSE_PCI_TYPE_BRIDGE &&
+ device->cell == &root_cell)
+ return PCI_ACCESS_DONE;
+
return PCI_ACCESS_REJECT;
}