migration: Export ram_transferred_ram()
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: David Edmondson <david.edmondson@oracle.com> Reviewed-by: Leonardo Bras <leobras@redhat.com>
This commit is contained in:
parent
d6f45eba2b
commit
26a2606916
@ -422,7 +422,7 @@ uint64_t ram_bytes_remaining(void)
|
|||||||
|
|
||||||
MigrationStats ram_counters;
|
MigrationStats ram_counters;
|
||||||
|
|
||||||
static void ram_transferred_add(uint64_t bytes)
|
void ram_transferred_add(uint64_t bytes)
|
||||||
{
|
{
|
||||||
if (runstate_is_running()) {
|
if (runstate_is_running()) {
|
||||||
ram_counters.precopy_bytes += bytes;
|
ram_counters.precopy_bytes += bytes;
|
||||||
|
@ -65,6 +65,8 @@ int ram_load_postcopy(QEMUFile *f, int channel);
|
|||||||
|
|
||||||
void ram_handle_compressed(void *host, uint8_t ch, uint64_t size);
|
void ram_handle_compressed(void *host, uint8_t ch, uint64_t size);
|
||||||
|
|
||||||
|
void ram_transferred_add(uint64_t bytes);
|
||||||
|
|
||||||
int ramblock_recv_bitmap_test(RAMBlock *rb, void *host_addr);
|
int ramblock_recv_bitmap_test(RAMBlock *rb, void *host_addr);
|
||||||
bool ramblock_recv_bitmap_test_byte_offset(RAMBlock *rb, uint64_t byte_offset);
|
bool ramblock_recv_bitmap_test_byte_offset(RAMBlock *rb, uint64_t byte_offset);
|
||||||
void ramblock_recv_bitmap_set(RAMBlock *rb, void *host_addr);
|
void ramblock_recv_bitmap_set(RAMBlock *rb, void *host_addr);
|
||||||
|
Loading…
Reference in New Issue
Block a user