mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: config: Add warning about specifying "wce" without "vhost-user"
Currently configuring WCE is only supported when using vhost-user. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
@@ -441,6 +441,9 @@ impl DiskConfig {
|
|||||||
vhost_socket = Some(vhost_socket_str.to_owned());
|
vhost_socket = Some(vhost_socket_str.to_owned());
|
||||||
}
|
}
|
||||||
if !wce_str.is_empty() {
|
if !wce_str.is_empty() {
|
||||||
|
if !vhost_user {
|
||||||
|
warn!("wce parameter currently only has effect when used vhost_user=true");
|
||||||
|
}
|
||||||
wce = wce_str.parse().map_err(Error::ParseDiskWceParam)?;
|
wce = wce_str.parse().map_err(Error::ParseDiskWceParam)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user