mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: vhost-user-net: unpark control queue thread in resume
This thread is virtio-net specific, so it is not handled in the common virtio device code. The non-vhost implementation resumes the thread itself. Do the same thing for vhost-user-net. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
@@ -366,7 +366,12 @@ impl Pausable for Net {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn resume(&mut self) -> result::Result<(), MigratableError> {
|
fn resume(&mut self) -> result::Result<(), MigratableError> {
|
||||||
self.common.resume()
|
self.common.resume()?;
|
||||||
|
|
||||||
|
if let Some(ctrl_queue_epoll_thread) = &self.ctrl_queue_epoll_thread {
|
||||||
|
ctrl_queue_epoll_thread.thread().unpark();
|
||||||
|
}
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user