mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
migration: Don't use INT64_MAX for unlimited rate
Define and use RATE_LIMIT_DISABLED instead. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com> Message-Id: <20230515195709.63843-2-quintela@redhat.com>
This commit is contained in:
parent
d0a14a2ba0
commit
8e4b2a7059
3 changed files with 13 additions and 3 deletions
|
@ -15,6 +15,12 @@
|
|||
|
||||
#include "qemu/stats64.h"
|
||||
|
||||
/*
|
||||
* If rate_limit_max is 0, there is special code to remove the rate
|
||||
* limit.
|
||||
*/
|
||||
#define RATE_LIMIT_DISABLED 0
|
||||
|
||||
/*
|
||||
* These are the ram migration statistic counters. It is loosely
|
||||
* based on MigrationStats. We change to Stat64 any counter that
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue