search for: last_option

Displaying 3 results from an estimated 3 matches for "last_option".

Did you mean: last_action
2018 May 04
1
[PATCH] common/qemuopts: ensure arg lists are never empty
...common/qemuopts/qemuopts.c +++ b/common/qemuopts/qemuopts.c @@ -453,7 +453,15 @@ qemuopts_append_arg_list_format (struct qemuopts *qopts, int qemuopts_end_arg_list (struct qemuopts *qopts) { - /* Nothing to do, the list is already well-formed. */ + struct qopt *qopt; + size_t len; + + qopt = last_option (qopts); + assert (qopt->type == QOPT_ARG_LIST); + len = count_strings (qopt->values); + if (len == 0) + return -1; + return 0; } @@ -816,7 +824,9 @@ qemuopts_to_argv (struct qemuopts *qopts) case QOPT_ARG_LIST: /* We only have to do comma-quoting here. */ value...
2018 Nov 30
1
[PATCH] Replace -nodefconfig with -no-user-config.
...t;1024", "-smp", "4", "-drive", "file=/tmp/foo,if=ide", diff --git a/common/qemuopts/qemuopts.c b/common/qemuopts/qemuopts.c index 3a8dcae70..53dc8c2a3 100644 --- a/common/qemuopts/qemuopts.c +++ b/common/qemuopts/qemuopts.c @@ -196,7 +196,7 @@ last_option (struct qemuopts *qopts) /** * Add a command line flag which has no argument. eg: * - * qemuopts_add_flag (qopts, "-nodefconfig"); + * qemuopts_add_flag (qopts, "-no-user-config"); * * Returns C<0> on success. Returns C<-1> on error, setting C<errno&gt...
2017 Apr 27
4
[PATCH 0/4] common: Add a simple mini-library for handling qemu command and config files.
Currently we have an OCaml library for generating the qemu command line (used only by ‘virt-v2v -o qemu’). However we also generate a qemu command line in ‘lib/launch-direct.c’, and we might in future need to generate a ‘-readconfig’-compatible configuration file if we want to go beyond 10,000 drives for scalability testing. Therefore this patch series reimplements the qemu command line code as