pci, vmm: Pass PCI BDF to vfio and vfio_user

On AArch64, PCI BDF is used for devId in MSI-X routing entry.

Signed-off-by: Michael Zhao <michael.zhao@arm.com>
This commit is contained in:
Michael Zhao
2022-01-18 19:52:56 +08:00
committed by Bo Chen
parent cf68f03ab6
commit 1db7718589
3 changed files with 21 additions and 6 deletions

View File

@@ -3025,6 +3025,7 @@ impl DeviceManager {
&self.msi_interrupt_manager,
legacy_interrupt_group,
device_cfg.iommu,
pci_device_bdf,
)
.map_err(DeviceManagerError::VfioPciCreate)?;
@@ -3171,6 +3172,7 @@ impl DeviceManager {
client.clone(),
&self.msi_interrupt_manager,
legacy_interrupt_group,
pci_device_bdf,
)
.map_err(DeviceManagerError::VfioUserCreate)?;