Allow tests to tune their parameters when running on HVF.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Fabiano Rosas <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-ID: <[email protected]>
---
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 ed85ed502dd..2ef0f579626 100644
--- a/tests/qtest/migration/framework.h
+++ b/tests/qtest/migration/framework.h
@@ -39,6 +39,7 @@ typedef enum {
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 6d830079ee4..57d3b9b7c5a 100644
--- a/tests/qtest/migration/framework.c
+++ b/tests/qtest/migration/framework.c
@@ -1101,6 +1101,7 @@ MigrationTestEnv *migration_get_env(void)
}
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.52.0