arch: Create ACPI IORT table

The virtual IOMMU exposed through virtio-iommu device has a dependency
on ACPI. It needs to expose the device ID of the virtio-iommu device,
and all the other devices attached to this virtual IOMMU. The IDs are
expressed from a PCI bus perspective, based on segment, bus, device and
function.

The guest relies on the topology description provided by the IORT table
to attach devices to the virtio-iommu device.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-10-01 23:56:37 -07:00
committed by Samuel Ortiz
parent f40adff2a1
commit 03352f45f9
4 changed files with 124 additions and 1 deletions

View File

@@ -745,6 +745,7 @@ impl Vm {
Some(hdr),
self.config.serial.mode != ConsoleOutputMode::Off,
end_of_range,
None,
)
.map_err(|_| Error::CmdLine)?;
@@ -765,6 +766,7 @@ impl Vm {
None,
self.config.serial.mode != ConsoleOutputMode::Off,
end_of_range,
None,
)
.map_err(|_| Error::CmdLine)?;