aboutsummaryrefslogtreecommitdiff
path: root/migration/ram.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2021-02-02 15:17:32 +0100
committerDr. David Alan Gilbert <dgilbert@redhat.com>2021-02-08 11:19:51 +0000
commit8b9407a09f925ff9e4dcf6783add8df68f5c7eb6 (patch)
tree847c126f96e8c59c83eb072aee83205c7ea2de44 /migration/ram.h
parentec17de0ac09f1f45c78d6afd0d7aea05ffb0ed9d (diff)
downloadqemu-8b9407a09f925ff9e4dcf6783add8df68f5c7eb6.zip
qemu-8b9407a09f925ff9e4dcf6783add8df68f5c7eb6.tar.gz
qemu-8b9407a09f925ff9e4dcf6783add8df68f5c7eb6.tar.bz2
migration: Clean up signed vs. unsigned XBZRLE cache-size
73af8dd8d7 "migration: Make xbzrle_cache_size a migration parameter" (v2.11.0) made the new parameter unsigned (QAPI type 'size', uint64_t in C). It neglected to update existing code, which continues to use int64_t. migrate_xbzrle_cache_size() returns the new parameter. Adjust its return type. QMP query-migrate-cache-size returns migrate_xbzrle_cache_size(). Adjust its return type. migrate-set-parameters passes the new parameter to xbzrle_cache_resize(). Adjust its parameter type. xbzrle_cache_resize() passes it on to cache_init(). Adjust its parameter type. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20210202141734.2488076-3-armbru@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/ram.h')
-rw-r--r--migration/ram.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/ram.h b/migration/ram.h
index c25540c..6378bb3 100644
--- a/migration/ram.h
+++ b/migration/ram.h
@@ -47,7 +47,7 @@ bool ramblock_is_ignored(RAMBlock *block);
INTERNAL_RAMBLOCK_FOREACH(block) \
if (!qemu_ram_is_migratable(block)) {} else
-int xbzrle_cache_resize(int64_t new_size, Error **errp);
+int xbzrle_cache_resize(uint64_t new_size, Error **errp);
uint64_t ram_bytes_remaining(void);
uint64_t ram_bytes_total(void);