diff options
author | Juan Quintela <quintela@redhat.com> | 2022-02-22 21:02:03 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2022-12-15 10:30:37 +0100 |
commit | 26a2606916781dc83d375bda439290d7baa80498 (patch) | |
tree | 39944631d450f9c13a90d34216d0c85f9d7b762c /migration | |
parent | d6f45eba2bb1dbf48c05adcf3e14040b913d2085 (diff) | |
download | qemu-26a2606916781dc83d375bda439290d7baa80498.zip qemu-26a2606916781dc83d375bda439290d7baa80498.tar.gz qemu-26a2606916781dc83d375bda439290d7baa80498.tar.bz2 |
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>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/ram.c | 2 | ||||
-rw-r--r-- | migration/ram.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/migration/ram.c b/migration/ram.c index 1338e47..2cbe707 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -422,7 +422,7 @@ uint64_t ram_bytes_remaining(void) MigrationStats ram_counters; -static void ram_transferred_add(uint64_t bytes) +void ram_transferred_add(uint64_t bytes) { if (runstate_is_running()) { ram_counters.precopy_bytes += bytes; diff --git a/migration/ram.h b/migration/ram.h index c7af65a..e844966 100644 --- a/migration/ram.h +++ b/migration/ram.h @@ -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_transferred_add(uint64_t bytes); + int ramblock_recv_bitmap_test(RAMBlock *rb, void *host_addr); bool ramblock_recv_bitmap_test_byte_offset(RAMBlock *rb, uint64_t byte_offset); void ramblock_recv_bitmap_set(RAMBlock *rb, void *host_addr); |