[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/7] tests/qtest/migration: Add MigrationTestEnv::has_hvf field
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 5/7] tests/qtest/migration: Add MigrationTestEnv::has_hvf field |
Date: |
Tue, 28 Jan 2025 14:54:27 +0100 |
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(+)
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) {
--
2.47.1
- [PATCH 3/7] tests/qtest/migration: Initialize MigrationTestEnv::arch early, (continued)
- [PATCH 3/7] tests/qtest/migration: Initialize MigrationTestEnv::arch early, Philippe Mathieu-Daudé, 2025/01/28
- [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é <=
- [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, 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