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:
Samuel Ortiz
2019-09-23 19:42:52 +02:00
committed by Rob Bradford
parent 5f8a62f3d0
commit 3dc7aff00e
5 changed files with 23 additions and 23 deletions

View File

@@ -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)?;