(&mut self, pmem_cfg: &mut PmemConfig)
| 5087 | } |
| 5088 | |
| 5089 | pub fn add_pmem(&mut self, pmem_cfg: &mut PmemConfig) -> DeviceManagerResult<PciDeviceInfo> { |
| 5090 | self.validate_identifier(&pmem_cfg.pci_common.id)?; |
| 5091 | |
| 5092 | if pmem_cfg.pci_common.iommu && !self.is_iommu_segment(pmem_cfg.pci_common.pci_segment) { |
| 5093 | return Err(DeviceManagerError::InvalidIommuHotplug); |
| 5094 | } |
| 5095 | |
| 5096 | let device = self.make_virtio_pmem_device(pmem_cfg)?; |
| 5097 | self.hotplug_virtio_pci_device(device) |
| 5098 | } |
| 5099 | |
| 5100 | pub fn add_net(&mut self, net_cfg: &mut NetConfig) -> DeviceManagerResult<PciDeviceInfo> { |
| 5101 | self.validate_identifier(&net_cfg.pci_common.id)?; |
nothing calls this directly
no test coverage detected