vm-virtio: Rename epoll_thread to epoll_threads

Now that we unified epoll_thread to potentially be a vector of threads,
it makes sense to make it a plural field.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
Samuel Ortiz
2020-01-27 14:14:56 +01:00
committed by Sebastien Boeuf
parent f648f2856d
commit c06a827cbb
11 changed files with 40 additions and 40 deletions
+3 -3
View File
@@ -765,7 +765,7 @@ pub struct Iommu {
ext_mapping: BTreeMap<u32, Arc<dyn ExternalDmaMapping>>,
queue_evts: Option<Vec<EventFd>>,
interrupt_cb: Option<Arc<dyn VirtioInterrupt>>,
epoll_thread: Option<Vec<thread::JoinHandle<result::Result<(), DeviceError>>>>,
epoll_threads: Option<Vec<thread::JoinHandle<result::Result<(), DeviceError>>>>,
paused: Arc<AtomicBool>,
}
@@ -795,7 +795,7 @@ impl Iommu {
ext_mapping: BTreeMap::new(),
queue_evts: None,
interrupt_cb: None,
epoll_thread: None,
epoll_threads: None,
paused: Arc::new(AtomicBool::new(false)),
},
mapping,
@@ -948,7 +948,7 @@ impl VirtioDevice for Iommu {
ActivateError::BadActivate
})?;
self.epoll_thread = Some(epoll_threads);
self.epoll_threads = Some(epoll_threads);
Ok(())
}