mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-22 07:51:16 +00:00
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
@ -964,6 +964,11 @@ impl Iommu {
|
|||||||
pub fn add_external_mapping(&mut self, device_id: u32, mapping: Arc<dyn ExternalDmaMapping>) {
|
pub fn add_external_mapping(&mut self, device_id: u32, mapping: Arc<dyn ExternalDmaMapping>) {
|
||||||
self.ext_mapping.lock().unwrap().insert(device_id, mapping);
|
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 {
|
impl Drop for Iommu {
|
||||||
|
Loading…
Reference in New Issue
Block a user