tests/qtest/migration: Re-enable postcopy tests
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>
This commit is contained in:
parent
bc3ace6914
commit
06056ef1ff
@ -22,6 +22,11 @@
|
|||||||
#include "migration/bootfile.h"
|
#include "migration/bootfile.h"
|
||||||
#include "migration/migration-util.h"
|
#include "migration/migration-util.h"
|
||||||
|
|
||||||
|
#if defined(__linux__)
|
||||||
|
#include <sys/ioctl.h>
|
||||||
|
#include <sys/syscall.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* for uffd_version_check() */
|
/* for uffd_version_check() */
|
||||||
#if defined(__linux__) && defined(__NR_userfaultfd) && defined(CONFIG_EVENTFD)
|
#if defined(__linux__) && defined(__NR_userfaultfd) && defined(CONFIG_EVENTFD)
|
||||||
#include <sys/eventfd.h>
|
#include <sys/eventfd.h>
|
||||||
@ -31,7 +36,6 @@
|
|||||||
/* For dirty ring test; so far only x86_64 is supported */
|
/* For dirty ring test; so far only x86_64 is supported */
|
||||||
#if defined(__linux__) && defined(HOST_X86_64)
|
#if defined(__linux__) && defined(HOST_X86_64)
|
||||||
#include "linux/kvm.h"
|
#include "linux/kvm.h"
|
||||||
#include <sys/ioctl.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user