]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
tools: config create: Comments and style, no functional changes
authorHenning Schild <henning.schild@siemens.com>
Tue, 27 Jan 2015 14:05:32 +0000 (15:05 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Sun, 1 Feb 2015 11:47:10 +0000 (12:47 +0100)
Add comments to help make some sense out of the scope type numbers.

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

index c8e1e2cdec99bb290427bcd2119af740d2dadfc9..4ff1385ab1b17c78f90cf36f7f4fb9e2881a6ca2 100755 (executable)
@@ -632,13 +632,16 @@ def parse_dmar(pcidevices, ioapics):
             while offset < struct_len:
                 (scope_type, scope_len, id, bus, dev, fn) =\
                     parse_dmar_devscope(f)
+                # PCI Endpoint Device
                 if scope_type == 1:
                     for d in pcidevices:
                         if d.bus == bus and d.dev == dev and d.fn == fn:
                             d.iommu = len(units) - 1
                             break
+                # PCI Sub-hierarchy
                 elif scope_type == 2:
                     raise RuntimeError('Unsupported DMAR Device Scope type')
+                # IOAPIC
                 elif scope_type == 3:
                     ioapic = next(chip for chip in ioapics if chip.id == id)
                     bdf = (bus << 8) | (dev << 3) | fn