summary refs log tree commit diff stats
path: root/migration/rdma.c
diff options
context:
space:
mode:
authorLi Zhijian <lizhijian@fujitsu.com>2025-03-05 14:28:23 +0800
committerPeter Xu <peterx@redhat.com>2025-05-02 11:09:36 -0400
commit4ecd6beaf9ff4ad88a33eab78789335a6e929564 (patch)
tree895b3999de557f84077964da8ee7ecd8a682f77a /migration/rdma.c
parent103fa641953bfadfe88fbe5f16c0afc9f1e508db (diff)
downloadfocaccia-qemu-4ecd6beaf9ff4ad88a33eab78789335a6e929564.tar.gz
focaccia-qemu-4ecd6beaf9ff4ad88a33eab78789335a6e929564.zip
migration/rdma: Remove redundant migration_in_postcopy checks
Since we have disabled RDMA + postcopy, it's safe to remove
the migration_in_postcopy() that follows the migrate_rdma().

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Message-ID: <20250305062825.772629-5-lizhijian@fujitsu.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'migration/rdma.c')
-rw-r--r--migration/rdma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/migration/rdma.c b/migration/rdma.c
index b31652baac..a3c3b432d1 100644
--- a/migration/rdma.c
+++ b/migration/rdma.c
@@ -3284,7 +3284,7 @@ err:
 int rdma_control_save_page(QEMUFile *f, ram_addr_t block_offset,
                            ram_addr_t offset, size_t size)
 {
-    if (!migrate_rdma() || migration_in_postcopy()) {
+    if (!migrate_rdma()) {
         return RAM_SAVE_CONTROL_NOT_SUPP;
     }
 
@@ -3829,7 +3829,7 @@ int rdma_block_notification_handle(QEMUFile *f, const char *name)
 
 int rdma_registration_start(QEMUFile *f, uint64_t flags)
 {
-    if (!migrate_rdma() || migration_in_postcopy()) {
+    if (!migrate_rdma()) {
         return 0;
     }
 
@@ -3861,7 +3861,7 @@ int rdma_registration_stop(QEMUFile *f, uint64_t flags)
     RDMAControlHeader head = { .len = 0, .repeat = 1 };
     int ret;
 
-    if (!migrate_rdma() || migration_in_postcopy()) {
+    if (!migrate_rdma()) {
         return 0;
     }