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:
Rob Bradford 2020-01-28 12:04:11 +00:00
parent 12f4cd951a
commit 969b5ee4e8

View File

@ -441,6 +441,9 @@ impl DiskConfig {
vhost_socket = Some(vhost_socket_str.to_owned());
}
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)?;
}