vmm: config: Require a socket when using vhost-user

With self-spawning being removed both parameters are now required.

Fixes: #1925

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-11-06 09:44:17 +00:00
committed by Samuel Ortiz
parent ec84abc5c7
commit 0005d11e32
2 changed files with 21 additions and 9 deletions

View File

@@ -812,14 +812,12 @@ mod unit_tests {
"shared=true",
"--disk",
"vhost_user=true,socket=/tmp/sock1",
"path=/path/to/disk/2",
],
r#"{
"kernel": {"path": "/path/to/kernel"},
"memory" : { "shared": true, "size": 536870912 },
"disks": [
{"vhost_user":true, "vhost_socket":"/tmp/sock1"},
{"path": "/path/to/disk/2"}
{"vhost_user":true, "vhost_socket":"/tmp/sock1"}
]
}"#,
true,
@@ -833,14 +831,12 @@ mod unit_tests {
"shared=true",
"--disk",
"vhost_user=true,socket=/tmp/sock1",
"path=/path/to/disk/2",
],
r#"{
"kernel": {"path": "/path/to/kernel"},
"memory" : { "shared": true, "size": 536870912 },
"disks": [
{"vhost_user":true, "vhost_socket":"/tmp/sock1"},
{"path": "/path/to/disk/2"}
{"vhost_user":true, "vhost_socket":"/tmp/sock1"}
]
}"#,
true,