[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3 10/13] migration/rdma: Check sooner if we are in postcopy
|
From: |
Zhijian Li (Fujitsu) |
|
Subject: |
Re: [PATCH v3 10/13] migration/rdma: Check sooner if we are in postcopy for save_page() |
|
Date: |
Fri, 13 Oct 2023 08:11:38 +0000 |
|
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 |
On 12/10/2023 04:35, Juan Quintela wrote:
> Reviewed-by: Peter Xu <peterx@redhat.com>
> Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Li Zhijian <lizhijian@fujitsu.com>
> ---
> migration/rdma.c | 6 +-----
> 1 file changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/migration/rdma.c b/migration/rdma.c
> index d3bba05262..932d4eda9b 100644
> --- a/migration/rdma.c
> +++ b/migration/rdma.c
> @@ -3240,10 +3240,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);
>
> @@ -3317,7 +3313,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;
> }
>
- Re: [PATCH v3 02/13] migration/rdma: Unfold ram_control_before_iterate(), (continued)
- [PATCH v3 08/13] migration/rdma: Move rdma constants from qemu-file.h to rdma.h, Juan Quintela, 2023/10/11
- [PATCH v3 11/13] migration/rdma: Use i as for index instead of idx, Juan Quintela, 2023/10/11
- [PATCH v3 13/13] migration/rdma: Remove all "ret" variables that are used only once, Juan Quintela, 2023/10/11
- [PATCH v3 10/13] migration/rdma: Check sooner if we are in postcopy for save_page(), Juan Quintela, 2023/10/11
- Re: [PATCH v3 10/13] migration/rdma: Check sooner if we are in postcopy for save_page(),
Zhijian Li (Fujitsu) <=
- [PATCH v3 12/13] migration/rdma: Declare for index variables local, Juan Quintela, 2023/10/11