diff options
author | Juan Quintela <quintela@redhat.com> | 2023-06-09 00:49:11 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2023-09-29 17:05:23 +0200 |
commit | 22d3c6e16c69ea581eef6f7ff8ebb2e63107d3f5 (patch) | |
tree | 07cea9a333e477ec8c2f8f4880e7e357a15d1999 | |
parent | 0c690d3e2a3eb73a6c27afb66ec87534c1259bae (diff) | |
download | qemu-22d3c6e16c69ea581eef6f7ff8ebb2e63107d3f5.zip qemu-22d3c6e16c69ea581eef6f7ff8ebb2e63107d3f5.tar.gz qemu-22d3c6e16c69ea581eef6f7ff8ebb2e63107d3f5.tar.bz2 |
migration-test: dirtylimit checks for x86_64 arch before
So no need to assert we are in x86_64.
Once there, refactor the function to remove useless variables.
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-ID: <20230608224943.3877-11-quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r-- | tests/qtest/migration-test.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c index f601249..334648a 100644 --- a/tests/qtest/migration-test.c +++ b/tests/qtest/migration-test.c @@ -2651,10 +2651,7 @@ static int64_t get_limit_rate(QTestState *who) static QTestState *dirtylimit_start_vm(void) { QTestState *vm = NULL; - g_autofree gchar *cmd = NULL; - const char *arch = qtest_get_arch(); - - assert((strcmp(arch, "x86_64") == 0)); + g_autofree gchar * cmd = g_strdup_printf("-accel kvm,dirty-ring-size=4096 " "-name dirtylimit-test,debug-threads=on " "-m 150M -smp 1 " |