(
&mut self,
device_cfg: &mut DeviceConfig,
)
| 3757 | } |
| 3758 | |
| 3759 | fn add_passthrough_device( |
| 3760 | &mut self, |
| 3761 | device_cfg: &mut DeviceConfig, |
| 3762 | ) -> DeviceManagerResult<(PciBdf, String)> { |
| 3763 | // If the passthrough device has not been created yet, it is created |
| 3764 | // here and stored in the DeviceManager structure for future needs. |
| 3765 | if self.passthrough_device.is_none() { |
| 3766 | self.passthrough_device = Some( |
| 3767 | self.address_manager |
| 3768 | .vm |
| 3769 | .create_passthrough_device() |
| 3770 | .map_err(|e| DeviceManagerError::CreatePassthroughDevice(e.into()))?, |
| 3771 | ); |
| 3772 | } |
| 3773 | |
| 3774 | self.add_vfio_device(device_cfg) |
| 3775 | } |
| 3776 | |
| 3777 | fn create_vfio_ops(&self) -> DeviceManagerResult<Arc<dyn VfioOps>> { |
| 3778 | let passthrough_device = self |
no test coverage detected