]> git.proxmox.com Git - mirror_qemu.git/commitdiff
migration: Make threshold_size an uint64_t
authorPeter Xu <peterx@redhat.com>
Wed, 17 Jan 2024 07:58:46 +0000 (15:58 +0800)
committerPeter Xu <peterx@redhat.com>
Mon, 29 Jan 2024 03:02:12 +0000 (11:02 +0800)
It's always used to compare against another uint64_t.  Make it always clear
that it's never a negative.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240117075848.139045-2-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/migration.h

index 17972dac34e1341f2991041b17145f59564d271c..a589ae8650981bc686989c8d7263af32ce18a7b1 100644 (file)
@@ -296,7 +296,7 @@ struct MigrationState {
      * this threshold; it's calculated from the requested downtime and
      * measured bandwidth, or avail-switchover-bandwidth if specified.
      */
-    int64_t threshold_size;
+    uint64_t threshold_size;
 
     /* params from 'migrate-set-parameters' */
     MigrationParameters parameters;