[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC 1/2] migration: Introduce ram_transferred_add()
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [RFC 1/2] migration: Introduce ram_transferred_add() |
Date: |
Fri, 17 Dec 2021 20:09:12 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 |
On 12/16/21 13:34, David Edmondson wrote:
> ...and use it.
>
> Signed-off-by: David Edmondson <david.edmondson@oracle.com>
> ---
> migration/ram.c | 23 ++++++++++++++---------
> migration/ram.h | 1 +
> 2 files changed, 15 insertions(+), 9 deletions(-)
> diff --git a/migration/ram.h b/migration/ram.h
> index c515396a9a..a5b2ffdc18 100644
> --- a/migration/ram.h
> +++ b/migration/ram.h
> @@ -51,6 +51,7 @@ int xbzrle_cache_resize(uint64_t new_size, Error **errp);
> uint64_t ram_bytes_remaining(void);
> uint64_t ram_bytes_total(void);
> void mig_throttle_counter_reset(void);
> +void ram_transferred_add(uint64_t bytes);
Why make the method public? It seems an internal operation. Do you
plan to use it elsewhere?