From ddd0552c8353648feeb2d2bf243e77e19145023e Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Mon, 8 Feb 2021 15:06:38 +0000 Subject: [PATCH] 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 --- virtio-devices/src/vhost_user/net.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/virtio-devices/src/vhost_user/net.rs b/virtio-devices/src/vhost_user/net.rs index 3901f011c..c13d53298 100644 --- a/virtio-devices/src/vhost_user/net.rs +++ b/virtio-devices/src/vhost_user/net.rs @@ -366,7 +366,12 @@ impl Pausable for Net { } 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(()) } }