[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: migration-test: Allow test to run without uffd
|
From: |
Peter Xu |
|
Subject: |
[PATCH] tests: migration-test: Allow test to run without uffd |
|
Date: |
Thu, 7 Jul 2022 14:46:00 -0400 |
We used to stop running all tests if uffd is not detected. However
logically that's only needed for postcopy not the rest of tests.
Keep running the rest when still possible.
Signed-off-by: Peter Xu <peterx@redhat.com>
---
tests/qtest/migration-test.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/tests/qtest/migration-test.c b/tests/qtest/migration-test.c
index 9e64125f02..55acf9612c 100644
--- a/tests/qtest/migration-test.c
+++ b/tests/qtest/migration-test.c
@@ -2086,14 +2086,11 @@ int main(int argc, char **argv)
{
char template[] = "/tmp/migration-test-XXXXXX";
const bool has_kvm = qtest_has_accel("kvm");
+ const bool has_uffd = ufd_version_check();
int ret;
g_test_init(&argc, &argv, NULL);
- if (!ufd_version_check()) {
- return g_test_run();
- }
-
/*
* On ppc64, the test only works with kvm-hv, but not with kvm-pr and TCG
* is touchy due to race conditions on dirty bits (especially on PPC for
@@ -2122,8 +2119,10 @@ int main(int argc, char **argv)
module_call_init(MODULE_INIT_QOM);
- qtest_add_func("/migration/postcopy/unix", test_postcopy);
- qtest_add_func("/migration/postcopy/recovery", test_postcopy_recovery);
+ if (has_uffd) {
+ qtest_add_func("/migration/postcopy/unix", test_postcopy);
+ qtest_add_func("/migration/postcopy/recovery", test_postcopy_recovery);
+ }
qtest_add_func("/migration/bad_dest", test_baddest);
qtest_add_func("/migration/precopy/unix/plain", test_precopy_unix_plain);
qtest_add_func("/migration/precopy/unix/xbzrle", test_precopy_unix_xbzrle);
--
2.32.0
- [PATCH] tests: migration-test: Allow test to run without uffd,
Peter Xu <=
- Re: [PATCH] tests: migration-test: Allow test to run without uffd, Daniel P . Berrangé, 2022/07/08
- Re: [PATCH] tests: migration-test: Allow test to run without uffd, Thomas Huth, 2022/07/18
- Re: [PATCH] tests: migration-test: Allow test to run without uffd, Peter Xu, 2022/07/18
- Re: [PATCH] tests: migration-test: Allow test to run without uffd, Daniel P . Berrangé, 2022/07/19
- Re: [PATCH] tests: migration-test: Allow test to run without uffd, Thomas Huth, 2022/07/19
- Re: [PATCH] tests: migration-test: Allow test to run without uffd, Daniel P . Berrangé, 2022/07/19
- Re: [PATCH] tests: migration-test: Allow test to run without uffd, Peter Xu, 2022/07/19
- Re: [PATCH] tests: migration-test: Allow test to run without uffd, Thomas Huth, 2022/07/20
- Re: [PATCH] tests: migration-test: Allow test to run without uffd, Peter Xu, 2022/07/20
- Re: [PATCH] tests: migration-test: Allow test to run without uffd, Thomas Huth, 2022/07/20