[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 7/8] tests/qtest/migration: Re-enable postcopy tests
From: |
Fabiano Rosas |
Subject: |
[PULL 7/8] tests/qtest/migration: Re-enable postcopy tests |
Date: |
Thu, 2 Jan 2025 19:06:28 -0300 |
Postcopy tests have been inadvertently disabled since commit
124a3c58b8 ("tests/qtest/migration: Move ufd_version_check to
utils"). That commit moved the ufd_version_check() function to another
file but failed to make sense of the ifdefs and includes:
The <sys/syscall> include was incorrectly dropped. It is needed to
pull in <asm/unistd.h> for __NR_userfaultfd.
The <sys/ioctl.h> was moved under the wrong ifdef.
Fixes: 124a3c58b8 ("tests/qtest/migration: Move ufd_version_check to utils")
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Message-Id: <20241218192223.10551-2-farosas@suse.de>
---
tests/qtest/migration/migration-util.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/qtest/migration/migration-util.c
b/tests/qtest/migration/migration-util.c
index 401fe27f00..526bed74ea 100644
--- a/tests/qtest/migration/migration-util.c
+++ b/tests/qtest/migration/migration-util.c
@@ -22,6 +22,11 @@
#include "migration/bootfile.h"
#include "migration/migration-util.h"
+#if defined(__linux__)
+#include <sys/ioctl.h>
+#include <sys/syscall.h>
+#endif
+
/* for uffd_version_check() */
#if defined(__linux__) && defined(__NR_userfaultfd) && defined(CONFIG_EVENTFD)
#include <sys/eventfd.h>
@@ -31,7 +36,6 @@
/* For dirty ring test; so far only x86_64 is supported */
#if defined(__linux__) && defined(HOST_X86_64)
#include "linux/kvm.h"
-#include <sys/ioctl.h>
#endif
--
2.35.3
- [PULL 0/8] QTest patches for 2025-01-02, Fabiano Rosas, 2025/01/02
- [PULL 1/8] tests/qtest/migration: Fix compile errors when CONFIG_UADK is set, Fabiano Rosas, 2025/01/02
- [PULL 3/8] tests/qtest/migration: Initialize buffer in probe_o_direct_support, Fabiano Rosas, 2025/01/02
- [PULL 2/8] tests/qtest/migration: Do proper cleanup in the dirty_limit test, Fabiano Rosas, 2025/01/02
- [PULL 6/8] tests/migration: Drop arch_[source|target], Fabiano Rosas, 2025/01/02
- [PULL 5/8] tests/qtest/virtio-iommu-test: Don't pass uninitialized data into qtest_memwrite, Fabiano Rosas, 2025/01/02
- [PULL 7/8] tests/qtest/migration: Re-enable postcopy tests,
Fabiano Rosas <=
- [PULL 8/8] qtest/fw-cfg: remove compiled out code, Fabiano Rosas, 2025/01/02
- [PULL 4/8] tests/qtest/bios-tables-test: Free tables at dump_aml_files, Fabiano Rosas, 2025/01/02
- Re: [PULL 0/8] QTest patches for 2025-01-02, Stefan Hajnoczi, 2025/01/03