[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 01/16] migration: Create migrate_rdma()
|
From: |
Juan Quintela |
|
Subject: |
Re: [PATCH v2 01/16] migration: Create migrate_rdma() |
|
Date: |
Wed, 03 May 2023 16:01:08 +0200 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Daniel P. Berrangé <berrange@redhat.com> wrote:
> On Wed, May 03, 2023 at 03:18:32PM +0200, Juan Quintela wrote:
>> Helper to say if we are doing a migration over rdma.
>
> Is the "MigrationState" allocated freshly for every incoming
> or outgoing migration ? If it is reused, then something
> needs to set 's->rdma_migration = false' in non-RDMA code
> paths.
for (i = 0; i < 1000; i++)
printf("never trust memory, check the code.\n");
You are right, the function that we call is:
migrate_init()
but we clear each statistic by hand, not a memset().
And now I have to review that we are not missing any other field to
reset.
Thanks, Juan.
- [PATCH v2 00/16] migration: Remove QEMUFileHooks, Juan Quintela, 2023/05/03
- [PATCH v2 02/16] migration/rdma: Unfold ram_control_before_iterate(), Juan Quintela, 2023/05/03
- [PATCH v2 01/16] migration: Create migrate_rdma(), Juan Quintela, 2023/05/03
- [PATCH v2 09/16] migration/rdma: Remove all uses of RAM_CONTROL_HOOK, Juan Quintela, 2023/05/03
- [PATCH v2 10/16] migration/rdma: Unfold hook_ram_load(), Juan Quintela, 2023/05/03
- [PATCH v2 11/16] migration/rdma: Make ram_control_save_page() use exported interfaces, Juan Quintela, 2023/05/03
- [PATCH v2 06/16] migration/rdma: We can calculate the rioc from the QEMUFile, Juan Quintela, 2023/05/03
- [PATCH v2 15/16] migration/rdma: Remove qemu_ prefix from exported functions, Juan Quintela, 2023/05/03
- [PATCH v2 14/16] migration/rdma: Move rdma constants from qemu-file.h to rdma.h, Juan Quintela, 2023/05/03
- [PATCH v2 16/16] migration/rdma: If we are in postcopy don't do anything, Juan Quintela, 2023/05/03
- [PATCH v2 03/16] migration/rdma: Unfold ram_control_after_iterate(), Juan Quintela, 2023/05/03
- [PATCH v2 08/16] migration: Make RAM_SAVE_FLAG_HOOK a normal case entry, Juan Quintela, 2023/05/03
- [PATCH v2 07/16] migration/rdma: It makes no sense to recive that flag without RDMA, Juan Quintela, 2023/05/03