]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
migration/multifd: move macros to multifd header
authorPrasad Pandit <pjp@fedoraproject.org>
Fri, 11 Apr 2025 11:45:28 +0000 (17:15 +0530)
committerPeter Xu <peterx@redhat.com>
Fri, 2 May 2025 15:09:36 +0000 (11:09 -0400)
Move MULTIFD_ macros to the header file so that
they are accessible from other source files.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Prasad Pandit <pjp@fedoraproject.org>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-ID: <20250411114534.3370816-2-ppandit@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/multifd.c
migration/multifd.h

index 86c83e43c079ab53445fdd32d644a71c3bba9199..ec108af6245ad1613fec98eb6f98f2f064ff8640 100644 (file)
 #include "io/channel-socket.h"
 #include "yank_functions.h"
 
-/* Multiple fd's */
-
-#define MULTIFD_MAGIC 0x11223344U
-#define MULTIFD_VERSION 1
-
 typedef struct {
     uint32_t magic;
     uint32_t version;
index 2d337e7b3b52fd005a6c342fb552975e8f13bdf1..9b6d81e7ede024f05d4cd235de95e73840d0bbc4 100644 (file)
@@ -49,6 +49,11 @@ bool multifd_queue_page(RAMBlock *block, ram_addr_t offset);
 bool multifd_recv(void);
 MultiFDRecvData *multifd_get_recv_data(void);
 
+/* Multiple fd's */
+
+#define MULTIFD_MAGIC 0x11223344U
+#define MULTIFD_VERSION 1
+
 /* Multifd Compression flags */
 #define MULTIFD_FLAG_SYNC (1 << 0)