[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 7/7] tests/qtest/migration: Allow using accelerators differen
From: |
Fabiano Rosas |
Subject: |
Re: [PATCH 7/7] tests/qtest/migration: Allow using accelerators different of TCG / KVM |
Date: |
Tue, 28 Jan 2025 12:04:11 -0300 |
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
> There is no particular reason to restrict all the framework
> to TCG or KVM, since we can check on a per-test basis which
> accelerator is available (via MigrationTestEnv::has_$ACCEL).
The reason is:
CONFIG_KVM=n
CONFIG_TCG=n
The check is about "there is no accelerator at all".
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> tests/qtest/migration/framework.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/tests/qtest/migration/framework.c
> b/tests/qtest/migration/framework.c
> index 30808de14e0..e5f0712c266 100644
> --- a/tests/qtest/migration/framework.c
> +++ b/tests/qtest/migration/framework.c
> @@ -950,11 +950,6 @@ MigrationTestEnv *migration_get_env(void)
> env->has_hvf = qtest_has_accel("hvf");
> env->has_tcg = qtest_has_accel("tcg");
>
> - if (!env->has_tcg && !env->has_kvm) {
> - g_test_skip("No KVM or TCG accelerator available");
> - return env;
> - }
> -
> env->has_dirty_ring = env->has_kvm && kvm_dirty_ring_supported();
> env->has_uffd = ufd_version_check(&env->uffd_feature_thread_id);
> env->is_x86 = !strcmp(env->arch, "i386") || !strcmp(env->arch, "x86_64");
- [PATCH 2/7] tests/qtest/migration: Make 'has_dirty_ring' generic, (continued)
- [PATCH 2/7] tests/qtest/migration: Make 'has_dirty_ring' generic, Philippe Mathieu-Daudé, 2025/01/28
- [PATCH 4/7] tests/qtest/migration: Pass accelerator arguments as machine option, Philippe Mathieu-Daudé, 2025/01/28
- [RFC PATCH 6/7] tests/qtest/migration: Run aarch64/HVF tests using GICv2, Philippe Mathieu-Daudé, 2025/01/28
- [PATCH 5/7] tests/qtest/migration: Add MigrationTestEnv::has_hvf field, Philippe Mathieu-Daudé, 2025/01/28
- [PATCH 7/7] tests/qtest/migration: Allow using accelerators different of TCG / KVM, Philippe Mathieu-Daudé, 2025/01/28
- Re: [PATCH 7/7] tests/qtest/migration: Allow using accelerators different of TCG / KVM,
Fabiano Rosas <=
- Re: [PATCH 7/7] tests/qtest/migration: Allow using accelerators different of TCG / KVM, Richard Henderson, 2025/01/28
Re: [PATCH 0/7] tests/qtest/migration: Update framework to allow using HVF accelerator, Philippe Mathieu-Daudé, 2025/01/28