Assert for some of the comments from the VT-d manual, might help to
detect invalid ACPI tables.
Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
parse_dmar_devscope(f)
# PCI Endpoint Device
if scope_type == 1:
+ 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
break
# PCI Sub-hierarchy
elif scope_type == 2:
+ assert not (flags & 1)
for d in pcidevices:
if d.bus == bus and d.dev == dev and d.fn == fn:
(secondbus, subordinate) = \