pci: Store MSI interrupt manager in VfioCommon

Extend VfioCommon structure to own the MSI interrupt manager. This will
be useful for implementing the restore code path.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2022-04-22 11:08:29 +02:00
parent f767e97fa5
commit eb6daa2fc3
3 changed files with 18 additions and 29 deletions

View File

@@ -3181,7 +3181,7 @@ impl DeviceManager {
&self.address_manager.vm,
vfio_device,
vfio_container,
&self.msi_interrupt_manager,
self.msi_interrupt_manager.clone(),
legacy_interrupt_group,
device_cfg.iommu,
pci_device_bdf,
@@ -3339,7 +3339,7 @@ impl DeviceManager {
vfio_user_name.clone(),
&self.address_manager.vm,
client.clone(),
&self.msi_interrupt_manager,
self.msi_interrupt_manager.clone(),
legacy_interrupt_group,
pci_device_bdf,
)