projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
918f620
)
migration: Make threshold_size an uint64_t
author
Peter Xu
<peterx@redhat.com>
Wed, 17 Jan 2024 07:58:46 +0000
(15:58 +0800)
committer
Peter 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
patch
|
blob
|
history
diff --git
a/migration/migration.h
b/migration/migration.h
index 17972dac34e1341f2991041b17145f59564d271c..a589ae8650981bc686989c8d7263af32ce18a7b1 100644
(file)
--- a/
migration/migration.h
+++ b/
migration/migration.h
@@
-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;
+
u
int64_t threshold_size;
/* params from 'migrate-set-parameters' */
MigrationParameters parameters;