(&mut self, vsock_cfg: &mut VsockConfig)
| 5120 | } |
| 5121 | |
| 5122 | pub fn add_vsock(&mut self, vsock_cfg: &mut VsockConfig) -> DeviceManagerResult<PciDeviceInfo> { |
| 5123 | self.validate_identifier(&vsock_cfg.pci_common.id)?; |
| 5124 | |
| 5125 | if vsock_cfg.pci_common.iommu && !self.is_iommu_segment(vsock_cfg.pci_common.pci_segment) { |
| 5126 | return Err(DeviceManagerError::InvalidIommuHotplug); |
| 5127 | } |
| 5128 | |
| 5129 | let device = self.make_virtio_vsock_device(vsock_cfg)?; |
| 5130 | self.hotplug_virtio_pci_device(device) |
| 5131 | } |
| 5132 | |
| 5133 | pub fn counters(&self) -> HashMap<String, HashMap<&'static str, Wrapping<u64>>> { |
| 5134 | let mut counters = HashMap::new(); |
nothing calls this directly
no test coverage detected