Skip to main content

Module root_context

Module root_context 

Source
Expand description

Root Table and Context Table entry types for the Intel VT-d IOMMU.

Based on Intel VT-d Specification Rev 4.1, §9.1 (Root Entry) and §9.3 (Context Entry). Legacy mode only.

The VT-d uses a two-level device lookup:

  • Root Table: 4KB, 256 entries indexed by PCI bus number.
  • Context Table: 4KB per bus, 256 entries indexed by devfn (device:function).

Structs§

AddressWidth
Address width for second-level page tables (§9.3).
ContextEntry
Context Table Entry (128-bit, §9.3).
ContextEntryHi
Context Entry — high 64 bits.
ContextEntryLo
Context Entry — low 64 bits.
RootEntry
Root Table Entry (128-bit, §9.1).
RootEntryLo
Root Entry — low 64 bits.
TranslationType
Translation type for context entries (§9.3).

Constants§

CONTEXT_TABLE_ENTRIES
Number of entries per context table.
ROOT_TABLE_ENTRIES
Number of entries in the root table (one per PCI bus).