mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Use virtio topology for virtio-iommu
Instead of relying on the ACPI tables to describe the devices attached to the virtual IOMMU, let's use the virtio topology, as the ACPI support is getting deprecated. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
@@ -621,7 +621,9 @@ impl DeviceManager {
|
||||
|
||||
iommu_attached_devices.append(&mut vfio_iommu_device_ids);
|
||||
|
||||
if let Some(iommu_device) = iommu_device {
|
||||
if let Some(mut iommu_device) = iommu_device {
|
||||
iommu_device.attach_pci_devices(0, iommu_attached_devices.clone());
|
||||
|
||||
// We need to shift the device id since the 3 first bits
|
||||
// are dedicated to the PCI function, and we know we don't
|
||||
// do multifunction. Also, because we only support one PCI
|
||||
|
||||
Reference in New Issue
Block a user