mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vhost_user_backend: Return a list of vring workers
Now that multiple worker threads can be run from the backend crate, it is important that each backend implementation can access every worker thread. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
@@ -449,14 +449,14 @@ pub fn start_block_backend(backend_command: &str) {
|
||||
.unwrap();
|
||||
debug!("blk_daemon is created!\n");
|
||||
|
||||
let vring_worker = blk_daemon.get_vring_worker();
|
||||
let vring_worker = blk_daemon.get_vring_workers();
|
||||
blk_backend
|
||||
.write()
|
||||
.unwrap()
|
||||
.thread
|
||||
.lock()
|
||||
.unwrap()
|
||||
.set_vring_worker(Some(vring_worker));
|
||||
.set_vring_worker(Some(vring_worker[0].clone()));
|
||||
|
||||
if let Err(e) = blk_daemon.start() {
|
||||
error!(
|
||||
|
||||
Reference in New Issue
Block a user