qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/7] tests/qtest/migration: Initialize MigrationTestEnv::arch


From: Richard Henderson
Subject: Re: [PATCH 3/7] tests/qtest/migration: Initialize MigrationTestEnv::arch early
Date: Tue, 28 Jan 2025 11:20:41 -0800
User-agent: Mozilla Thunderbird

On 1/28/25 05:54, Philippe Mathieu-Daudé wrote:
Some tests expectMigrationTestEnv::arch to be set. Initialize
it early enough to avoid SIGSEGV, for example like the following
g_str_equal() call in migration/precopy-tests.c:

    954 void migration_test_add_precopy(MigrationTestEnv *env)
    955 {
    ...
   1001     if (g_str_equal(env->arch, "x86_64") && env->has_dirty_ring) {
   1002
   1003         migration_test_add("/migration/dirty_ring",
   1004                            test_precopy_unix_dirty_ring);

Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
  tests/qtest/migration/framework.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]