mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
virtio-devices: vhost_user: blk: Cleanup device creation
Prepare the device creation so that it can be factorized in a follow up commit. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
@@ -1888,11 +1888,7 @@ impl DeviceManager {
|
||||
queue_size: disk_cfg.queue_size,
|
||||
};
|
||||
let vhost_user_block_device = Arc::new(Mutex::new(
|
||||
match virtio_devices::vhost_user::Blk::new(
|
||||
id.clone(),
|
||||
vu_cfg,
|
||||
self.seccomp_action.clone(),
|
||||
) {
|
||||
match virtio_devices::vhost_user::Blk::new(id.clone(), vu_cfg) {
|
||||
Ok(vub_device) => vub_device,
|
||||
Err(e) => {
|
||||
return Err(DeviceManagerError::CreateVhostUserBlk(e));
|
||||
|
||||
Reference in New Issue
Block a user