vmm: Add multiple queue option and update config for virtio-net device

Add num_queues and queue_size for virtio-net device to make them configurable,
while add the associated options in command line.

Update cloud-hypervisor.yaml with the new options for NetConfig.

Signed-off-by: Cathy Zhang <cathy.zhang@intel.com>
This commit is contained in:
Cathy Zhang
2019-11-12 17:14:54 +08:00
committed by Sebastien Boeuf
parent 4ab88a8173
commit 404316eea1
3 changed files with 44 additions and 1 deletions

View File

@@ -131,7 +131,8 @@ fn create_app<'a, 'b>(
.help(
"Network parameters \"tap=<if_name>,\
ip=<ip_addr>,mask=<net_mask>,mac=<mac_addr>,\
iommu=on|off\"",
iommu=on|off,num_queues=<number_of_queues>,\
queue_size=<size_of_each_queue>\"",
)
.takes_value(true)
.min_values(1)