class IommuManager

Defined at line 90 of file ../../src/devices/lib/iommu/iommu-x86.h

Internally synchronized iommu manager.

Public Methods

zx::unowned_iommu IommuForAcpiDevice (std::string_view path)

TODO(https://fxbug.dev/42173782): parse ANDD for this information.

Defined at line 103 of file ../../src/devices/lib/iommu/iommu-x86.h

zx::unowned_iommu StubIommu ()

Defined at line 105 of file ../../src/devices/lib/iommu/iommu-x86.h

void IommuManager (IommuLogger logger)

Defined at line 364 of file ../../src/devices/lib/iommu/iommu-x86.cc

void ~IommuManager ()

Defined at line 366 of file ../../src/devices/lib/iommu/iommu-x86.cc

zx_status_t Init (zx::unowned_resource iommu_resource, bool use_hardware_iommu)

Initializes the iommu_manager using the ACPI DMAR table. If this fails,

the IOMMU manager will be left in a well-defined empty state, and

IommuForBdf() can still succeed (yielding stub IOMMU handles).

Defined at line 372 of file ../../src/devices/lib/iommu/iommu-x86.cc

zx::unowned_iommu IommuForPciDevice (uint32_t bdf)

Returns a handle to the IOMMU that is responsible for the given BDF.

Defined at line 487 of file ../../src/devices/lib/iommu/iommu-x86.cc

Friends

class IommuTest