Skip to content

Commit 06056ef

Browse files
author
Fabiano Rosas
committed
tests/qtest/migration: Re-enable postcopy tests
Postcopy tests have been inadvertently disabled since commit 124a3c5 ("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: 124a3c5 ("tests/qtest/migration: Move ufd_version_check to utils") Reviewed-by: Peter Xu <[email protected]> Signed-off-by: Fabiano Rosas <[email protected]> Message-Id: <[email protected]>
1 parent bc3ace6 commit 06056ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/qtest/migration/migration-util.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
#include "migration/bootfile.h"
2323
#include "migration/migration-util.h"
2424

25+
#if defined(__linux__)
26+
#include <sys/ioctl.h>
27+
#include <sys/syscall.h>
28+
#endif
29+
2530
/* for uffd_version_check() */
2631
#if defined(__linux__) && defined(__NR_userfaultfd) && defined(CONFIG_EVENTFD)
2732
#include <sys/eventfd.h>
@@ -31,7 +36,6 @@
3136
/* For dirty ring test; so far only x86_64 is supported */
3237
#if defined(__linux__) && defined(HOST_X86_64)
3338
#include "linux/kvm.h"
34-
#include <sys/ioctl.h>
3539
#endif
3640

3741

0 commit comments

Comments
 (0)