mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Make vhost-user configuration owned
Convert Path to PathBuf, &str to String and remove the associated lifetime. Fixes #298 Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
5f8a62f3d0
commit
3dc7aff00e
@@ -773,7 +773,7 @@ impl DeviceManager {
|
||||
for vhost_user_net_cfg in vhost_user_net_list_cfg.iter() {
|
||||
let vhost_user_net_device = vm_virtio::vhost_user::Net::new(
|
||||
vhost_user_net_cfg.mac,
|
||||
vhost_user_net_cfg.vu_cfg,
|
||||
vhost_user_net_cfg.vu_cfg.clone(),
|
||||
)
|
||||
.map_err(DeviceManagerError::CreateVhostUserNet)?;
|
||||
|
||||
@@ -793,7 +793,7 @@ impl DeviceManager {
|
||||
for vhost_user_blk_cfg in vhost_user_blk_list_cfg.iter() {
|
||||
let vhost_user_blk_device = vm_virtio::vhost_user::Blk::new(
|
||||
vhost_user_blk_cfg.wce,
|
||||
vhost_user_blk_cfg.vu_cfg,
|
||||
vhost_user_blk_cfg.vu_cfg.clone(),
|
||||
)
|
||||
.map_err(DeviceManagerError::CreateVhostUserBlk)?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user