[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC 1/2] migration: Introduce ram_transferred_add()
From: |
David Edmondson |
Subject: |
Re: [RFC 1/2] migration: Introduce ram_transferred_add() |
Date: |
Mon, 20 Dec 2021 08:01:58 +0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
On Friday, 2021-12-17 at 20:09:12 +01, Philippe Mathieu-Daudé wrote:
> 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?
No such plan. Will fix in v2.
dme.
--
We wanna wait, but here we go again.