Displaying 2 results from an estimated 2 matches for "extend_options".
2018 Apr 30
0
[PATCH 3/4] common/qemuopts: use the old pointer as realloc pointer
...c code analyzers.
---
common/qemuopts/qemuopts.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/common/qemuopts/qemuopts.c b/common/qemuopts/qemuopts.c
index c40d44783..b3e69e306 100644
--- a/common/qemuopts/qemuopts.c
+++ b/common/qemuopts/qemuopts.c
@@ -168,8 +168,7 @@ extend_options (struct qemuopts *qopts)
qopts->nr_alloc = 1;
else
qopts->nr_alloc *= 2;
- new_options = qopts->options;
- new_options = realloc (new_options,
+ new_options = realloc (qopts->options,
qopts->nr_alloc * sizeof (struct qopt));...
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