[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 8/8] tests/qtest/migration-test: Allow running with HVF
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [PATCH 8/8] tests/qtest/migration-test: Allow running with HVF |
Date: |
Thu, 19 Jan 2023 11:13:07 +0000 |
User-agent: |
Mutt/2.2.9 (2022-11-12) |
* Philippe Mathieu-Daudé (philmd@linaro.org) wrote:
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Does it support migration? I don't remember anyone ever mentioning it.
Dave
> ---
> tests/qtest/migration-test.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
> index 1e7f1ea162..7a0fcfb81d 100644
> --- a/tests/qtest/migration-test.c
> +++ b/tests/qtest/migration-test.c
> @@ -47,6 +47,7 @@ unsigned start_address;
> unsigned end_address;
> static bool has_tcg;
> static bool has_kvm;
> +static bool has_hvf;
> static bool uffd_feature_thread_id;
>
> /*
> @@ -614,6 +615,9 @@ static int test_migrate_start(QTestState **from,
> QTestState **to,
> args->use_dirty_ring
> ? ",dirty-ring-size=4096" : "");
> }
> + if (has_hvf) {
> + g_string_append(cmd_common, "-accel hvf ");
> + }
>
> bootpath = g_strdup_printf("%s/bootsect", tmpfs);
> if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) {
> @@ -2472,6 +2476,7 @@ int main(int argc, char **argv)
>
> has_tcg = qtest_has_accel("tcg");
> has_kvm = qtest_has_accel("kvm");
> + has_hvf = qtest_has_accel("hvf");
>
> g_test_init(&argc, &argv, NULL);
>
> --
> 2.38.1
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
- [PATCH 0/8] tests/qtest: Allow running boot-serial / migration with TCG disabled, Philippe Mathieu-Daudé, 2023/01/19
- [PATCH 1/8] tests/qtest/boot-serial-test: Constify tests[] array, Philippe Mathieu-Daudé, 2023/01/19
- [PATCH 2/8] tests/qtest/boot-serial-test: Build command line using GString API, Philippe Mathieu-Daudé, 2023/01/19
- [PATCH 3/8] tests/qtest/boot-serial-test: Only use available accelerators, Philippe Mathieu-Daudé, 2023/01/19
- [PATCH 5/8] tests/qtest/migration-test: Only use available accelerators, Philippe Mathieu-Daudé, 2023/01/19
- [PATCH 8/8] tests/qtest/migration-test: Allow running with HVF, Philippe Mathieu-Daudé, 2023/01/19
- Re: [PATCH 8/8] tests/qtest/migration-test: Allow running with HVF,
Dr. David Alan Gilbert <=
- [PATCH 7/8] tests/qtest/boot-serial-test: Allow running with HVF, Philippe Mathieu-Daudé, 2023/01/19
- [PATCH 4/8] tests/qtest/migration-test: Build command line using GString API, Philippe Mathieu-Daudé, 2023/01/19
- [RFC PATCH 6/8] tests/qtest/libqtest: Allow checking for HVF accelerator, Philippe Mathieu-Daudé, 2023/01/19