virtio-devices: iommu: Provide 'wait_for_epoll_threads()'
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
2af2cc539f
commit
fdecd94b20
1 changed files with 5 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue