From fdecd94b202ebe9e69c84a3d648eb6d0901e1521 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Tue, 18 Oct 2022 15:13:12 -0700 Subject: [PATCH] virtio-devices: iommu: Provide 'wait_for_epoll_threads()' Signed-off-by: Bo Chen --- virtio-devices/src/iommu.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/virtio-devices/src/iommu.rs b/virtio-devices/src/iommu.rs index 362cb93bb..1cd9088d0 100644 --- a/virtio-devices/src/iommu.rs +++ b/virtio-devices/src/iommu.rs @@ -964,6 +964,11 @@ impl Iommu { pub fn add_external_mapping(&mut self, device_id: u32, mapping: Arc) { 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 {