diff options
| author | Juan Quintela <quintela@redhat.com> | 2023-10-19 13:07:20 +0200 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2023-10-30 17:41:55 +0100 |
| commit | fb36fb275f455642599ac882fd5a96a8b00b062e (patch) | |
| tree | b4b5d9bfd54610898a7dec78ea1618850b23e714 /migration/ram-compress.h | |
| parent | 250b1d7ef62b26fde8dc0f8dacad406807d82f1a (diff) | |
| download | focaccia-qemu-fb36fb275f455642599ac882fd5a96a8b00b062e.tar.gz focaccia-qemu-fb36fb275f455642599ac882fd5a96a8b00b062e.zip | |
migration: Create compress_update_rates()
So we can move more compression_counters stuff to ram-compress.c. Create compression_counters struct to add the stuff that was on MigrationState. Reviewed-by: Lukas Straub <lukasstraub2@web.de> Reviewed-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Juan Quintela <quintela@redhat.com> Message-ID: <20231019110724.15324-8-quintela@redhat.com>
Diffstat (limited to 'migration/ram-compress.h')
| -rw-r--r-- | migration/ram-compress.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/ram-compress.h b/migration/ram-compress.h index b228640092..76dacd3ec7 100644 --- a/migration/ram-compress.h +++ b/migration/ram-compress.h @@ -71,5 +71,6 @@ void decompress_data_with_multi_threads(QEMUFile *f, void *host, int len); void populate_compress(MigrationInfo *info); uint64_t ram_compressed_pages(void); void update_compress_thread_counts(const CompressParam *param, int bytes_xmit); +void compress_update_rates(uint64_t page_count); #endif |