[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v7 09/12] migration: Export ram_release_page()
From: |
Leonardo Brás |
Subject: |
Re: [PATCH v7 09/12] migration: Export ram_release_page() |
Date: |
Thu, 11 Aug 2022 06:31:03 -0300 |
User-agent: |
Evolution 3.44.3 |
On Tue, 2022-08-02 at 08:39 +0200, Juan Quintela wrote:
> Signed-off-by: Juan Quintela <quintela@redhat.com>
> ---
> migration/ram.h | 1 +
> migration/ram.c | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/migration/ram.h b/migration/ram.h
> index e844966f69..038d52f49f 100644
> --- a/migration/ram.h
> +++ b/migration/ram.h
> @@ -66,6 +66,7 @@ int ram_load_postcopy(QEMUFile *f, int channel);
> void ram_handle_compressed(void *host, uint8_t ch, uint64_t size);
>
> void ram_transferred_add(uint64_t bytes);
> +void ram_release_page(const char *rbname, uint64_t offset);
>
> int ramblock_recv_bitmap_test(RAMBlock *rb, void *host_addr);
> bool ramblock_recv_bitmap_test_byte_offset(RAMBlock *rb, uint64_t
> byte_offset);
> diff --git a/migration/ram.c b/migration/ram.c
> index 499d9b2a90..291ba5c0ed 100644
> --- a/migration/ram.c
> +++ b/migration/ram.c
> @@ -1238,7 +1238,7 @@ static void migration_bitmap_sync_precopy(RAMState *rs)
> }
> }
>
> -static void ram_release_page(const char *rbname, uint64_t offset)
> +void ram_release_page(const char *rbname, uint64_t offset)
> {
> if (!migrate_release_ram() || !migration_in_postcopy()) {
> return;
LGTM. FWIW:
Reviewed-by: Leonardo Bras <leobras@redhat.com>
- Re: [PATCH v7 05/12] migration: Make ram_save_target_page() a pointer, (continued)
[PATCH v7 06/12] multifd: Make flags field thread local, Juan Quintela, 2022/08/02
[PATCH v7 10/12] multifd: Support for zero pages transmission, Juan Quintela, 2022/08/02
[PATCH v7 09/12] migration: Export ram_release_page(), Juan Quintela, 2022/08/02
- Re: [PATCH v7 09/12] migration: Export ram_release_page(),
Leonardo Brás <=
[PATCH v7 11/12] multifd: Zero pages transmission, Juan Quintela, 2022/08/02
[PATCH v7 12/12] So we use multifd to transmit zero pages., Juan Quintela, 2022/08/02