Skip to content

Commit 4ecd6be

Browse files
zhijianli88xzpeter
authored andcommitted
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 <[email protected]> Signed-off-by: Li Zhijian <[email protected]> Message-ID: <[email protected]> Signed-off-by: Fabiano Rosas <[email protected]>
1 parent 103fa64 commit 4ecd6be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

migration/rdma.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3284,7 +3284,7 @@ static int qemu_rdma_save_page(QEMUFile *f, ram_addr_t block_offset,
32843284
int rdma_control_save_page(QEMUFile *f, ram_addr_t block_offset,
32853285
ram_addr_t offset, size_t size)
32863286
{
3287-
if (!migrate_rdma() || migration_in_postcopy()) {
3287+
if (!migrate_rdma()) {
32883288
return RAM_SAVE_CONTROL_NOT_SUPP;
32893289
}
32903290

@@ -3829,7 +3829,7 @@ int rdma_block_notification_handle(QEMUFile *f, const char *name)
38293829

38303830
int rdma_registration_start(QEMUFile *f, uint64_t flags)
38313831
{
3832-
if (!migrate_rdma() || migration_in_postcopy()) {
3832+
if (!migrate_rdma()) {
38333833
return 0;
38343834
}
38353835

@@ -3861,7 +3861,7 @@ int rdma_registration_stop(QEMUFile *f, uint64_t flags)
38613861
RDMAControlHeader head = { .len = 0, .repeat = 1 };
38623862
int ret;
38633863

3864-
if (!migrate_rdma() || migration_in_postcopy()) {
3864+
if (!migrate_rdma()) {
38653865
return 0;
38663866
}
38673867

0 commit comments

Comments
 (0)