mirror of
https://github.com/qemu/qemu.git
synced 2024-12-14 23:13:29 +08:00
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 <thuth@redhat.com> Message-Id: <1537204330-16076-1-git-send-email-thuth@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
096c83b721
commit
fc71e3e562
@ -443,11 +443,11 @@ static int test_migrate_start(QTestState **from, QTestState **to,
|
|||||||
start_address = X86_TEST_MEM_START;
|
start_address = X86_TEST_MEM_START;
|
||||||
end_address = X86_TEST_MEM_END;
|
end_address = X86_TEST_MEM_END;
|
||||||
} else if (strcmp(arch, "ppc64") == 0) {
|
} else if (strcmp(arch, "ppc64") == 0) {
|
||||||
cmd_src = g_strdup_printf("-machine accel=%s -m 256M"
|
cmd_src = g_strdup_printf("-machine accel=%s -m 256M -nodefaults"
|
||||||
" -name source,debug-threads=on"
|
" -name source,debug-threads=on"
|
||||||
" -serial file:%s/src_serial"
|
" -serial file:%s/src_serial"
|
||||||
" -prom-env '"
|
" -prom-env 'use-nvramrc?=true' -prom-env "
|
||||||
"boot-command=hex .\" _\" begin %x %x "
|
"'nvramrc=hex .\" _\" begin %x %x "
|
||||||
"do i c@ 1 + i c! 1000 +loop .\" B\" 0 "
|
"do i c@ 1 + i c! 1000 +loop .\" B\" 0 "
|
||||||
"until'", accel, tmpfs, end_address,
|
"until'", accel, tmpfs, end_address,
|
||||||
start_address);
|
start_address);
|
||||||
|
Loading…
Reference in New Issue
Block a user