vmm: Add an identifier to the --vsock device

It's possible to have multiple vsock devices so in preparation for
hotplug/unplug it is important to be able to have a unique identifier
for each device.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-04-27 10:15:30 +02:00
committed by Rob Bradford
parent 10348f73e4
commit 6e049e0da1
3 changed files with 55 additions and 26 deletions

View File

@@ -196,7 +196,8 @@ fn create_app<'a, 'b>(
Arg::with_name("vsock")
.long("vsock")
.help(
"Virtio VSOCK parameters \"cid=<context_id>,sock=<socket_path>,iommu=on|off\"",
"Virtio VSOCK parameters \
\"cid=<context_id>,sock=<socket_path>,iommu=on|off,id=<device_id>\"",
)
.takes_value(true)
.number_of_values(1)