diff --git a/src/main.rs b/src/main.rs index c010fd3ce..e54806ef3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -138,19 +138,19 @@ fn default_rng() -> String { /// Launch a cloud-hypervisor VMM. pub struct TopLevel { #[argh(option, long = "cpus", default = "default_vcpus()")] - /// boot=,max=,topology=:::,kvm_hyperv=on|off,max_phys_bits=,affinity=,features= + /// boot=, max=, topology=:::, kvm_hyperv=on|off, max_phys_bits=, affinity=, features= cpus: String, #[argh(option, long = "platform")] - /// num_pci_segments=,iommu_segments=,serial_number=,uuid=,oem_strings= + /// num_pci_segments=, iommu_segments=, serial_number=, uuid=, oem_strings= platform: Option, #[argh(option, long = "memory", default = "default_memory()")] - /// size=,mergeable=on|off,shared=on|off,hugepages=on|off,hugepage_size=,hotplug_method=acpi|virtio-mem,hotplug_size=,hotplugged_size=,prefault=on|off,thp=on|off + /// size=, mergeable=on|off, shared=on|off, hugepages=on|off, hugepage_size=, hotplug_method=acpi|virtio-mem, hotplug_size=, hotplugged_size=, prefault=on|off, thp=on|off memory: String, #[argh(option, long = "memory-zone")] - /// size=,file=,shared=on|off,hugepages=on|off,hugepage_size=,host_numa_node=,id=,hotplug_size=,hotplugged_size=,prefault=on|off + /// size=, file=, shared=on|off, hugepages=on|off, hugepage_size=, host_numa_node=, id=, hotplug_size=, hotplugged_size=, prefault=on|off memory_zone: Vec, #[argh(option, long = "firmware")] @@ -170,27 +170,27 @@ pub struct TopLevel { cmdline: Option, #[argh(option, long = "disk")] - /// path=,readonly=on|off,direct=on|off,iommu=on|off,num_queues=,queue_size=,vhost_user=on|off,socket=,bw_size=,bw_one_time_burst=,bw_refill_time=,ops_size=,ops_one_time_burst=,ops_refill_time=,id=,pci_segment= + /// path=, readonly=on|off, direct=on|off, iommu=on|off, num_queues=, queue_size=, vhost_user=on|off, socket=, bw_size=, bw_one_time_burst=, bw_refill_time=, ops_size=, ops_one_time_burst=, ops_refill_time=, id=, pci_segment= disk: Vec, #[argh(option, long = "net")] - /// tap=,ip=,mask=,mac=,fd=,iommu=on|off,num_queues=,queue_size=,id=,vhost_user=,socket=,vhost_mode=client|server,bw_size=,bw_one_time_burst=,bw_refill_time=,ops_size=,ops_one_time_burst=,ops_refill_time=,pci_segment=offload_tso=on|off,offload_ufo=on|off,offload_csum=on|off + /// tap=, ip=, mask=, mac=, fd=, iommu=on|off, num_queues=, queue_size=, id=, vhost_user=, socket=, vhost_mode=client|server, bw_size=, bw_one_time_burst=, bw_refill_time=, ops_size=, ops_one_time_burst=, ops_refill_time=, pci_segment=offload_tso=on|off, offload_ufo=on|off, offload_csum=on|off net: Vec, #[argh(option, long = "rng", default = "default_rng()")] - /// src=,iommu=on|off + /// src=, iommu=on|off rng: String, #[argh(option, long = "balloon")] - /// size=,deflate_on_oom=on|off,free_page_reporting=on|off + /// size=, deflate_on_oom=on|off, free_page_reporting=on|off balloon: Option, #[argh(option, long = "fs")] - /// tag=,socket=,num_queues=,queue_size=,id=,pci_segment= + /// tag=, socket=, num_queues=, queue_size=, id=, pci_segment= fs: Vec, #[argh(option, long = "pmem")] - /// file=,size=,iommu=on|off,discard_writes=on|off,id=,pci_segment= + /// file=, size=, iommu=on|off, discard_writes=on|off, id=, pci_segment= pmem: Vec, #[argh(option, long = "serial", default = "String::from(\"null\")")] @@ -198,27 +198,27 @@ pub struct TopLevel { serial: String, #[argh(option, long = "console", default = "String::from(\"tty\")")] - /// off|null|pty|tty|file=/path/to/a/file,iommu=on|off + /// off|null|pty|tty|file=/path/to/a/file, iommu=on|off console: String, #[argh(option, long = "device")] - /// path=,iommu=on|off,id=,pci_segment= + /// path=, iommu=on|off, id=, pci_segment= device: Vec, #[argh(option, long = "user-device")] - /// socket=,id=,pci_segment= + /// socket=, id=, pci_segment= user_device: Vec, #[argh(option, long = "vdpa")] - /// path=,num_queues=,iommu=on|off,id=,pci_segment= + /// path=, num_queues=, iommu=on|off, id=, pci_segment= vdpa: Vec, #[argh(option, long = "vsock")] - /// cid=,socket=,iommu=on|off,id=,pci_segment= + /// cid=, socket=, iommu=on|off, id=, pci_segment= vsock: Option, #[argh(option, long = "numa")] - /// guest_numa_id=,cpus=,distances=,memory_zones=,sgx_epc_sections= + /// guest_numa_id=, cpus=, distances=, memory_zones=, sgx_epc_sections= numa: Vec, #[argh(switch, long = "watchdog")] @@ -242,7 +242,7 @@ pub struct TopLevel { event_monitor: Option, #[argh(option, long = "restore")] - /// source_url=,prefault=on|off + /// source_url=, prefault=on|off restore: Option, #[argh(option, long = "seccomp", default = "String::from(\"true\")")] @@ -255,7 +255,7 @@ pub struct TopLevel { #[cfg(target_arch = "x86_64")] #[argh(option, long = "sgx-epc")] - /// id=,size=,prefault=on|off + /// id=, size=, prefault=on|off sgx_epc: Vec, #[cfg(feature = "guest_debug")]