Lines Matching refs:help

164         def has_option(help, option):  argument
165 return bool(re.search(r"^-%s(\s|$)" % option, help, re.MULTILINE))
173 def add_name(help, name): argument
176 def add_human_monitor(help, filename): argument
179 def add_qmp_monitor(help, filename): argument
182 def add_serial(help, filename): argument
185 def add_mem(help, mem): argument
188 def add_smp(help, smp): argument
191 def add_cdrom(help, filename, index=None, format=None): argument
192 if has_option(help, "drive"):
217 def add_drive(help, filename, index=None, format=None, cache=None, argument
251 def add_nic(help, vlan, model=None, mac=None, device_id=None, netdev_id=None, argument
253 if has_option(help, "netdev"):
257 if has_option(help, "device"):
277 def add_net(help, vlan, mode, ifname=None, tftp=None, bootfile=None, argument
280 if has_option(help, "netdev"):
289 if tftp and "[,tftp=" in help:
291 if bootfile and "[,bootfile=" in help:
293 if "[,hostfwd=" in help:
298 def add_floppy(help, filename): argument
301 def add_tftp(help, filename): argument
303 if "[,tftp=" in help:
308 def add_bootp(help, filename): argument
310 if "[,bootfile=" in help:
315 def add_tcp_redir(help, host_port, guest_port): argument
317 if "[,hostfwd=" in help:
322 def add_vnc(help, vnc_port): argument
325 def add_sdl(help): argument
326 if has_option(help, "sdl"):
331 def add_nographic(help): argument
334 def add_uuid(help, uuid): argument
337 def add_pcidevice(help, host): argument
340 def add_spice(help, port, param): argument
341 if has_option(help,"spice"):
346 def add_qxl_vga(help, qxl, vga, qxl_dev_nr=None): argument
348 if has_option(help, "qxl"):
351 if has_option(help, "vga") and vga and vga != "qxl":
353 elif has_option(help, "vga"):
360 def add_kernel(help, filename): argument
363 def add_initrd(help, filename): argument
366 def add_kernel_cmdline(help, cmdline): argument
369 def add_testdev(help, filename): argument
373 def add_no_hpet(help): argument
374 if has_option(help, "no-hpet"):
396 help = commands.getoutput("%s -help" % qemu_binary)
411 qemu_cmd += add_name(help, name)
413 if has_option(help,"nodefaults"):
421 qemu_cmd += add_qmp_monitor(help, monitor_filename)
423 qemu_cmd += add_human_monitor(help, monitor_filename)
426 qemu_cmd += add_serial(help, vm.get_serial_console_filename())
438 qemu_cmd += add_drive(help,
469 qemu_cmd += add_nic(help, vlan, nic_params.get("nic_model"), mac,
482 qemu_cmd += add_net(help, vlan,
493 qemu_cmd += add_mem(help, mem)
497 qemu_cmd += add_smp(help, smp)
509 qemu_cmd += add_cdrom(help, virt_utils.get_path(root_dir, iso),
518 qemu_cmd += add_floppy(help, floppy)
523 qemu_cmd += add_tftp(help, tftp)
527 qemu_cmd += add_bootp(help, bootp)
532 qemu_cmd += add_kernel(help, kernel)
536 qemu_cmd += add_kernel_cmdline(help, kernel_cmdline)
541 qemu_cmd += add_initrd(help, initrd)
544 qemu_cmd += add_tcp_redir(help, host_port, guest_port)
547 qemu_cmd += add_vnc(help, vm.vnc_port)
549 qemu_cmd += add_sdl(help)
551 qemu_cmd += add_nographic(help)
553 qemu_cmd += add_spice(help, self.spice_port, params.get("spice"))
564 qemu_cmd += add_qxl_vga(help, qxl, vga, qxl_dev_nr)
567 qemu_cmd += add_uuid(help, vm.uuid)
569 qemu_cmd += add_uuid(help, params.get("uuid"))
572 qemu_cmd += add_testdev(help, vm.get_testlog_filename())
575 qemu_cmd += add_no_hpet(help)
581 qemu_cmd += add_pcidevice(help, pci_id)