summary refs log tree commit diff stats
path: root/migration/rdma.h
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2024-12-06 17:47:51 -0500
committerFabiano Rosas <farosas@suse.de>2025-01-09 17:38:15 -0300
commit604b4749c58f676aa37bd4d96496152f36f3b293 (patch)
tree30886dd46951db23a4ae6009ba38842e9aa5adba /migration/rdma.h
parent10801e08ac926a5a6083a9bd2ff87b153ccb95b1 (diff)
downloadfocaccia-qemu-604b4749c58f676aa37bd4d96496152f36f3b293.tar.gz
focaccia-qemu-604b4749c58f676aa37bd4d96496152f36f3b293.zip
migration/ram: Move RAM_SAVE_FLAG* into ram.h
Firstly, we're going to use the multifd flag soon in multifd code, so ram.c
isn't gonna work.

Secondly, we have a separate RDMA flag dangling around, which is definitely
not obvious.  There's one comment that helps, but not too much.

Put all RAM save flags altogether, so nothing will get overlooked.

Add a section explain why we can't use bits over 0x200.

Remove RAM_SAVE_FLAG_FULL as it's already not used in QEMU, as the comment
explained.

Reviewed-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20241206224755.1108686-4-peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'migration/rdma.h')
-rw-r--r--migration/rdma.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/migration/rdma.h b/migration/rdma.h
index a8d27f33b8..f55f28bbed 100644
--- a/migration/rdma.h
+++ b/migration/rdma.h
@@ -33,13 +33,6 @@ void rdma_start_incoming_migration(InetSocketAddress *host_port, Error **errp);
 #define RAM_CONTROL_ROUND     1
 #define RAM_CONTROL_FINISH    3
 
-/*
- * Whenever this is found in the data stream, the flags
- * will be passed to rdma functions in the incoming-migration
- * side.
- */
-#define RAM_SAVE_FLAG_HOOK     0x80
-
 #define RAM_SAVE_CONTROL_NOT_SUPP -1000
 #define RAM_SAVE_CONTROL_DELAYED  -2000