diff --git a/src/lib.rs b/src/lib.rs index 611d9e7..602fcda 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -191,8 +191,8 @@ impl VhostUserDaemon { /// Retrieve the vring worker. This is necessary to perform further /// actions like registering and unregistering some extra event file /// descriptors. - pub fn get_vring_worker(&self) -> Arc { - self.handler.lock().unwrap().get_vring_worker() + pub fn get_vring_workers(&self) -> Vec> { + self.handler.lock().unwrap().get_vring_workers() } } @@ -545,8 +545,8 @@ impl VhostUserHandler { }) } - fn get_vring_worker(&self) -> Arc { - self.workers[0].clone() + fn get_vring_workers(&self) -> Vec> { + self.workers.clone() } fn vmm_va_to_gpa(&self, vmm_va: u64) -> VhostUserHandlerResult {