virtio-devices: iommu: Provide 'wait_for_epoll_threads()'

Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
Bo Chen 2022-10-18 15:13:12 -07:00 committed by Rob Bradford
parent 2af2cc539f
commit fdecd94b20

View File

@ -964,6 +964,11 @@ impl Iommu {
pub fn add_external_mapping(&mut self, device_id: u32, mapping: Arc<dyn ExternalDmaMapping>) {
self.ext_mapping.lock().unwrap().insert(device_id, mapping);
}
#[cfg(fuzzing)]
pub fn wait_for_epoll_threads(&mut self) {
self.common.wait_for_epoll_threads();
}
}
impl Drop for Iommu {