[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/42] migration-test: Create kvm_opts
From: |
Juan Quintela |
Subject: |
[PATCH 07/42] migration-test: Create kvm_opts |
Date: |
Fri, 9 Jun 2023 00:49:08 +0200 |
So arch_dirty_ring option becomes one option like the others.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
tests/qtest/migration-test.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index cd49c249d3..1fa815fa66 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -608,6 +608,7 @@ static int test_migrate_start(QTestState **from, QTestState
**to,
g_autofree char *bootpath = NULL;
g_autofree char *shmem_opts = NULL;
g_autofree char *shmem_path = NULL;
+ const char *kvm_opts = NULL;
const char *arch = qtest_get_arch();
const char *memory_size;
@@ -677,13 +678,16 @@ static int test_migrate_start(QTestState **from,
QTestState **to,
memory_size, shmem_path);
}
+ if (args->use_dirty_ring) {
+ kvm_opts = ",dirty-ring-size=4096";
+ }
+
cmd_source = g_strdup_printf("-accel kvm%s -accel tcg "
"-name source,debug-threads=on "
"-m %s "
"-serial file:%s/src_serial "
"%s %s %s %s %s",
- args->use_dirty_ring ?
- ",dirty-ring-size=4096" : "",
+ kvm_opts ? kvm_opts : "",
memory_size, tmpfs,
arch_opts ? arch_opts : "",
arch_source ? arch_source : "",
@@ -704,8 +708,7 @@ static int test_migrate_start(QTestState **from, QTestState
**to,
"-serial file:%s/dest_serial "
"-incoming %s "
"%s %s %s %s %s",
- args->use_dirty_ring ?
- ",dirty-ring-size=4096" : "",
+ kvm_opts ? kvm_opts : "",
memory_size, tmpfs, uri,
arch_opts ? arch_opts : "",
arch_target ? arch_target : "",
--
2.40.1
- Re: [PATCH 03/42] migration-test: simplify shmem_opts handling, (continued)
- [PATCH 04/42] migration-test: Make machine_opts regular with other options, Juan Quintela, 2023/06/08
- [PATCH 05/42] migration-test: Create arch_opts, Juan Quintela, 2023/06/08
- [PATCH 06/42] migration-test: machine_opts is really arch specific, Juan Quintela, 2023/06/08
- [PATCH 08/42] migration-test: bootpath is the same for all tests and for all archs, Juan Quintela, 2023/06/08
- [PATCH 07/42] migration-test: Create kvm_opts,
Juan Quintela <=
- [PATCH 09/42] migration-test: Add bootfile_create/delete() functions, Juan Quintela, 2023/06/08
- [PATCH 10/42] migration-test: dirtylimit checks for x86_64 arch before, Juan Quintela, 2023/06/08
- [PATCH 11/42] migration-test: Update test_ignore_shared to use args, Juan Quintela, 2023/06/08
- [PATCH 12/42] migration-test: Enable back ignore-shared test, Juan Quintela, 2023/06/08