From 969b5ee4e8d327915dd30ccabe8f320a0e1a5f89 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 28 Jan 2020 12:04:11 +0000 Subject: [PATCH] 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 --- vmm/src/config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vmm/src/config.rs b/vmm/src/config.rs index 7d1fcb622..17c99647f 100644 --- a/vmm/src/config.rs +++ b/vmm/src/config.rs @@ -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)?; }