From: Jan Kiszka <[email protected]> Not only the subdevices need to be assigned to the given IOMMU, also the bridge itself. Otherwise, the config generator will bail out with something like
RuntimeError: PCI device 00:03.0 outside the scope of an IOMMU Signed-off-by: Jan Kiszka <[email protected]> --- pyjailhouse/sysfs_parser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_parser.py index 7f19fb57..35c59744 100644 --- a/pyjailhouse/sysfs_parser.py +++ b/pyjailhouse/sysfs_parser.py @@ -395,6 +395,7 @@ def parse_dmar(pcidevices, ioapics, dmar_regions): assert not (flags & 1) for d in pcidevices: if d.bus == bus and d.dev == dev and d.fn == fn: + d.iommu = len(units) - 1 (secondbus, subordinate) = \ PCIPCIBridge.get_2nd_busses(d) for d2 in pcidevices: -- 2.35.3 -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/eba9280f25c370828f51764a3c06461af99410cb.1672643463.git.jan.kiszka%40siemens.com.
