Skip to content
Snippets Groups Projects
Commit 22d3c6e1 authored by Juan Quintela's avatar Juan Quintela
Browse files

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: default avatarPeter Xu <peterx@redhat.com>
Message-ID: <20230608224943.3877-11-quintela@redhat.com>
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent 0c690d3e
No related branches found
No related tags found
No related merge requests found
......@@ -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 "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment