[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 10/10] migration/rdma: Check sooner if we are in postcopy for
|
From: |
Juan Quintela |
|
Subject: |
[PATCH v2 10/10] migration/rdma: Check sooner if we are in postcopy for save_page() |
|
Date: |
Wed, 4 Oct 2023 14:49:13 +0200 |
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
migration/rdma.c | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/migration/rdma.c b/migration/rdma.c
index c73e610416..62293ab1d6 100644
--- a/migration/rdma.c
+++ b/migration/rdma.c
@@ -3253,10 +3253,6 @@ static int qemu_rdma_save_page(QEMUFile *f, ram_addr_t
block_offset,
RDMAContext *rdma;
int ret;
- if (migration_in_postcopy()) {
- return RAM_SAVE_CONTROL_NOT_SUPP;
- }
-
RCU_READ_LOCK_GUARD();
rdma = qatomic_rcu_read(&rioc->rdmaout);
@@ -3327,7 +3323,7 @@ err:
int rdma_control_save_page(QEMUFile *f, ram_addr_t block_offset,
ram_addr_t offset, size_t size)
{
- if (!migrate_rdma()) {
+ if (!migrate_rdma() || migration_in_postcopy()) {
return RAM_SAVE_CONTROL_NOT_SUPP;
}
--
2.41.0
- [PATCH v2 01/10] migration: Create migrate_rdma(), (continued)
- [PATCH v2 01/10] migration: Create migrate_rdma(), Juan Quintela, 2023/10/04
- [PATCH v2 02/10] migration/rdma: Unfold ram_control_before_iterate(), Juan Quintela, 2023/10/04
- [PATCH v2 03/10] migration/rdma: Unfold ram_control_after_iterate(), Juan Quintela, 2023/10/04
- [PATCH v2 05/10] migration/rdma: Unfold hook_ram_load(), Juan Quintela, 2023/10/04
- [PATCH v2 04/10] migration/rdma: Remove all uses of RAM_CONTROL_HOOK, Juan Quintela, 2023/10/04
- [PATCH v2 06/10] migration/rdma: Create rdma_control_save_page(), Juan Quintela, 2023/10/04
- [PATCH v2 07/10] qemu-file: Remove QEMUFileHooks, Juan Quintela, 2023/10/04
- [PATCH v2 08/10] migration/rdma: Move rdma constants from qemu-file.h to rdma.h, Juan Quintela, 2023/10/04
- [PATCH v2 09/10] migration/rdma: Remove qemu_ prefix from exported functions, Juan Quintela, 2023/10/04
- [PATCH v2 10/10] migration/rdma: Check sooner if we are in postcopy for save_page(),
Juan Quintela <=
- Re: [PATCH v2 00/10] Removal of QEMUFileHooks, Peter Xu, 2023/10/04