Message ID | 20250128135429.8500-6-philmd@linaro.org |
---|---|
State | New |
Headers | show |
Series | tests/qtest/migration: Update framework to allow using HVF accelerator | expand |
Philippe Mathieu-Daudé <philmd@linaro.org> writes: > Allow tests to tune their parameters when running on HVF. > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Fabiano Rosas <farosas@suse.de>
On 1/28/25 05:54, Philippe Mathieu-Daudé wrote: > Allow tests to tune their parameters when running on HVF. > > Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org> > --- > tests/qtest/migration/framework.h | 1 + > tests/qtest/migration/framework.c | 1 + > 2 files changed, 2 insertions(+) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
diff --git a/tests/qtest/migration/framework.h b/tests/qtest/migration/framework.h index 7991ee56b6f..76bd4dc1a95 100644 --- a/tests/qtest/migration/framework.h +++ b/tests/qtest/migration/framework.h @@ -19,6 +19,7 @@ typedef struct MigrationTestEnv { bool has_kvm; + bool has_hvf; bool has_tcg; bool has_uffd; bool uffd_feature_thread_id; diff --git a/tests/qtest/migration/framework.c b/tests/qtest/migration/framework.c index e567296b014..5629b8ba4e3 100644 --- a/tests/qtest/migration/framework.c +++ b/tests/qtest/migration/framework.c @@ -945,6 +945,7 @@ MigrationTestEnv *migration_get_env(void) env->arch = qtest_get_arch(); env->has_kvm = qtest_has_accel("kvm"); + env->has_hvf = qtest_has_accel("hvf"); env->has_tcg = qtest_has_accel("tcg"); if (!env->has_tcg && !env->has_kvm) {
Allow tests to tune their parameters when running on HVF. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- tests/qtest/migration/framework.h | 1 + tests/qtest/migration/framework.c | 1 + 2 files changed, 2 insertions(+)