mirror of https://github.com/xemu-project/xemu.git
migration-test: simplify shmem_opts handling
Reviewed-by: Peter Xu <peterx@redhat.com> Message-ID: <20230608224943.3877-4-quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
22d3c6e16c
commit
0368ace8f9
|
@ -806,9 +806,6 @@ static int test_migrate_start(QTestState **from, QTestState **to,
|
||||||
"-object memory-backend-file,id=mem0,size=%s"
|
"-object memory-backend-file,id=mem0,size=%s"
|
||||||
",mem-path=%s,share=on -numa node,memdev=mem0",
|
",mem-path=%s,share=on -numa node,memdev=mem0",
|
||||||
memory_size, shmem_path);
|
memory_size, shmem_path);
|
||||||
} else {
|
|
||||||
shmem_path = NULL;
|
|
||||||
shmem_opts = g_strdup("");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args->use_dirty_ring) {
|
if (args->use_dirty_ring) {
|
||||||
|
@ -824,7 +821,7 @@ static int test_migrate_start(QTestState **from, QTestState **to,
|
||||||
memory_size, tmpfs,
|
memory_size, tmpfs,
|
||||||
arch_opts ? arch_opts : "",
|
arch_opts ? arch_opts : "",
|
||||||
arch_source ? arch_source : "",
|
arch_source ? arch_source : "",
|
||||||
shmem_opts,
|
shmem_opts ? shmem_opts : "",
|
||||||
args->opts_source ? args->opts_source : "",
|
args->opts_source ? args->opts_source : "",
|
||||||
ignore_stderr);
|
ignore_stderr);
|
||||||
if (!args->only_target) {
|
if (!args->only_target) {
|
||||||
|
@ -844,7 +841,7 @@ static int test_migrate_start(QTestState **from, QTestState **to,
|
||||||
memory_size, tmpfs, uri,
|
memory_size, tmpfs, uri,
|
||||||
arch_opts ? arch_opts : "",
|
arch_opts ? arch_opts : "",
|
||||||
arch_target ? arch_target : "",
|
arch_target ? arch_target : "",
|
||||||
shmem_opts,
|
shmem_opts ? shmem_opts : "",
|
||||||
args->opts_target ? args->opts_target : "",
|
args->opts_target ? args->opts_target : "",
|
||||||
ignore_stderr);
|
ignore_stderr);
|
||||||
*to = qtest_init(cmd_target);
|
*to = qtest_init(cmd_target);
|
||||||
|
|
Loading…
Reference in New Issue