migration-test: ppc64: fix FORTH test program
PATCH 1/1 migration-test: ppc64: fix FORTH test program
Commit e51e711b1bef has moved the initialization of start_address and end_address after the definition of the command line argument, where the nvramrc is initialized, and thus the loop is between 0 and 0 rather than 1 MiB and 100 MiB.
It doesn't affect the result of the test if all the tests are run in sequence because the two first tests don't run the loop, so the values are correctly initialized when we actually need them.
But it hangs when we ask to run only one test, for instance:
QTEST_QEMU_BINARY=ppc64-softmmu/qemu-system-ppc64 \
tests/migration-test -m=quick -p /ppc64/migration/validate_uuid_error
--- tests/migration-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tests/migration-test.c +2 -2
@@ -480,14 +480,14 @@ static int test_migrate_start(QTestState **from, QTestState **to, }else if (strcmp (arch,"ppc64" ) ==0 ) { machine_opts ="vsmt=8" ; memory_size ="256M" ; + start_address =PPC_TEST_MEM_START ; + end_address =PPC_TEST_MEM_END ; arch_source =g_strdup_printf ("-nodefaults " "-prom-env 'use-nvramrc?=true' -prom-env " "'nvramrc=hex .\" _\" begin %x %x " "do i c@ 1 + i c! 1000 +loop .\" B\" 0 " "until'" , end_address, start_address); arch_target =g_strdup ("" ); - start_address =PPC_TEST_MEM_START ; - end_address =PPC_TEST_MEM_END ; }else if (strcmp (arch,"aarch64" ) ==0 ) {init_bootfile (bootpath, aarch64_kernel,sizeof (aarch64_kernel)); machine_opts ="virt,gic-version=max" ;
Signature · 1 line
2.23.0
Quoted 9 lines · * Laurent Vivier ([email protected]) wrote:
Commit
e51e711b1befhas moved the initialization ofstart_addressandend_addressafter the definition of the command line argument, where the nvramrc is initialized, and thus the loop is between 0 and 0 rather than 1 MiB and 100 MiB.It doesn't affect the result of the test if all the tests are run in sequence because the two first tests don't run the loop, so the values are correctly initialized when we actually need them.
Quoted 8 lines
But it hangs when we ask to run only one test, for instance:
QTEST_QEMU_BINARY=ppc64-softmmu/qemu-system-ppc64 \
tests/migration-test -m=quick -p /ppc64/migration/validate_uuid_errorFixes e51e711b1bef ("tests/migration: Add migration-test header file")Signed-off-by Laurent Vivier <[email protected]>
Quoted 28 lines
--- tests/migration-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tests/migration-test.c +2
-2@@ -480,14 +480,14 @@ static int test_migrate_start(QTestState **from, QTestState **to, }else if (strcmp (arch,"ppc64" ) ==0 ) { machine_opts ="vsmt=8" ; memory_size ="256M" ; + start_address =PPC_TEST_MEM_START ; + end_address =PPC_TEST_MEM_END ; arch_source =g_strdup_printf ("-nodefaults " "-prom-env 'use-nvramrc?=true' -prom-env " "'nvramrc=hex .\" _\" begin %x %x " "do i c@ 1 + i c! 1000 +loop .\" B\" 0 " "until'" , end_address, start_address); arch_target =g_strdup ("" ); - start_address =PPC_TEST_MEM_START ; - end_address =PPC_TEST_MEM_END ; }else if (strcmp (arch,"aarch64" ) ==0 ) {init_bootfile (bootpath, aarch64_kernel,sizeof (aarch64_kernel)); machine_opts ="virt,gic-version=max" ;Signature · 1 line
2.23.0
--
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Quoted 9 lines · Laurent Vivier
Commit
e51e711b1befhas moved the initialization ofstart_addressandend_addressafter the definition of the command line argument, where the nvramrc is initialized, and thus the loop is between 0 and 0 rather than 1 MiB and 100 MiB.It doesn't affect the result of the test if all the tests are run in sequence because the two first tests don't run the loop, so the values are correctly initialized when we actually need them.
Quoted 8 lines
But it hangs when we ask to run only one test, for instance:
QTEST_QEMU_BINARY=ppc64-softmmu/qemu-system-ppc64 \
tests/migration-test -m=quick -p /ppc64/migration/validate_uuid_errorFixes e51e711b1bef ("tests/migration: Add migration-test header file")Signed-off-by Laurent Vivier <[email protected]>
queued.
Quoted 9 lines · Laurent Vivier
Commit
e51e711b1befhas moved the initialization ofstart_addressandend_addressafter the definition of the command line argument, where the nvramrc is initialized, and thus the loop is between 0 and 0 rather than 1 MiB and 100 MiB.It doesn't affect the result of the test if all the tests are run in sequence because the two first tests don't run the loop, so the values are correctly initialized when we actually need them.
Quoted 8 lines
But it hangs when we ask to run only one test, for instance:
QTEST_QEMU_BINARY=ppc64-softmmu/qemu-system-ppc64 \
tests/migration-test -m=quick -p /ppc64/migration/validate_uuid_errorFixes e51e711b1bef ("tests/migration: Add migration-test header file")Signed-off-by Laurent Vivier <[email protected]>
Quoted 25 lines
--- tests/migration-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tests/migration-test.c +2
-2@@ -480,14 +480,14 @@ static int test_migrate_start(QTestState **from, QTestState **to, }else if (strcmp (arch,"ppc64" ) ==0 ) { machine_opts ="vsmt=8" ; memory_size ="256M" ; + start_address =PPC_TEST_MEM_START ; + end_address =PPC_TEST_MEM_END ; arch_source =g_strdup_printf ("-nodefaults " "-prom-env 'use-nvramrc?=true' -prom-env " "'nvramrc=hex .\" _\" begin %x %x " "do i c@ 1 + i c! 1000 +loop .\" B\" 0 " "until'" , end_address, start_address); arch_target =g_strdup ("" ); - start_address =PPC_TEST_MEM_START ; - end_address =PPC_TEST_MEM_END ; }else if (strcmp (arch,"aarch64" ) ==0 ) {init_bootfile (bootpath, aarch64_kernel,sizeof (aarch64_kernel)); machine_opts ="virt,gic-version=max" ;
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson