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:
Juan Quintela 2023-05-15 21:56:54 +02:00
parent d0a14a2ba0
commit 8e4b2a7059
3 changed files with 13 additions and 3 deletions

View file

@ -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