vmm: device_manager: Warn that vhost-user self spawning is deprecated

See #1724 for details.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-09-30 16:11:32 +01:00 committed by Sebastien Boeuf
parent 0a4be7ddf5
commit 664c3ceda6

View File

@ -1691,6 +1691,7 @@ impl DeviceManager {
let socket = if let Some(socket) = disk_cfg.vhost_socket.clone() {
socket
} else {
warn!("Self-spawning of vhost-user block backend is deprecated and will be removed in a future release.");
self.start_block_backend(disk_cfg)?
};
let vu_cfg = VhostUserConfig {
@ -1937,6 +1938,7 @@ impl DeviceManager {
let socket = if let Some(socket) = net_cfg.vhost_socket.clone() {
socket
} else {
warn!("Self-spawning of vhost-user net backend is deprecated and will be removed in a future release.");
self.start_net_backend(net_cfg)?
};
let vu_cfg = VhostUserConfig {