Skip to content

Commit fc71e3e

Browse files
huthdagrh
authored andcommitted
tests/migration: Speed up the test on ppc64
The SLOF boot process is always quite slow ... but we can speed it up a little bit by specifying "-nodefaults" and by using the "nvramrc" variable instead of "boot-command" (since "nvramrc" is evaluated earlier in the SLOF boot process than "boot-command"). Signed-off-by: Thomas Huth <[email protected]> Message-Id: <[email protected]> Reviewed-by: Dr. David Alan Gilbert <[email protected]> Reviewed-by: Laurent Vivier <[email protected]> Signed-off-by: Dr. David Alan Gilbert <[email protected]>
1 parent 096c83b commit fc71e3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/migration-test.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,11 +443,11 @@ static int test_migrate_start(QTestState **from, QTestState **to,
443443
start_address = X86_TEST_MEM_START;
444444
end_address = X86_TEST_MEM_END;
445445
} else if (strcmp(arch, "ppc64") == 0) {
446-
cmd_src = g_strdup_printf("-machine accel=%s -m 256M"
446+
cmd_src = g_strdup_printf("-machine accel=%s -m 256M -nodefaults"
447447
" -name source,debug-threads=on"
448448
" -serial file:%s/src_serial"
449-
" -prom-env '"
450-
"boot-command=hex .\" _\" begin %x %x "
449+
" -prom-env 'use-nvramrc?=true' -prom-env "
450+
"'nvramrc=hex .\" _\" begin %x %x "
451451
"do i c@ 1 + i c! 1000 +loop .\" B\" 0 "
452452
"until'", accel, tmpfs, end_address,
453453
start_address);

0 commit comments

Comments
 (0)