]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
tools: config-create: Fix IOMMU unit number of IOAPICs
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 13 May 2015 17:22:24 +0000 (19:22 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 13 May 2015 17:30:25 +0000 (19:30 +0200)
IOAPICs under the control of IOMMUs with unit number >= 1 were not
described correctly in the generated configs due to a stupid naming
mistake that Python cannot report.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
tools/jailhouse-config-create

index d489113a6629dbdd5462b210509fe1a0d448d25f..8a8e598c614bbc96d982aed890ffed30432c90a0 100755 (executable)
@@ -700,7 +700,7 @@ def parse_dmar(pcidevices, ioapics):
                         if chip.bdf == bdf:
                             raise RuntimeError('IOAPICs with identical BDF')
                     ioapic.bdf = bdf
-                    ioapic.dmar_unit = len(units) - 1
+                    ioapic.iommu = len(units) - 1
                 offset += scope_len
 
         # Reserved Memory Region Reporting Structure