Browse Source

tests/qtest/migration: Add MigrationTestEnv::has_hvf field

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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20250128135429.8500-6-philmd@linaro.org>
pull/316/head
Philippe Mathieu-Daudé 1 year ago
parent
commit
a49cb762eb
  1. 1
      tests/qtest/migration/framework.c
  2. 1
      tests/qtest/migration/framework.h

1
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) {

1
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;

Loading…
Cancel
Save