mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
migration: allow rate > 4g
I'd like to disable bandwidth limit or make it very high, Use int64_t all over to make values >= 4g work. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Tested-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
b2e0a138e7
commit
3d002df33e
4 changed files with 16 additions and 11 deletions
4
savevm.c
4
savevm.c
|
@ -611,7 +611,7 @@ int qemu_file_rate_limit(QEMUFile *f)
|
|||
return 0;
|
||||
}
|
||||
|
||||
size_t qemu_file_get_rate_limit(QEMUFile *f)
|
||||
int64_t qemu_file_get_rate_limit(QEMUFile *f)
|
||||
{
|
||||
if (f->get_rate_limit)
|
||||
return f->get_rate_limit(f->opaque);
|
||||
|
@ -619,7 +619,7 @@ size_t qemu_file_get_rate_limit(QEMUFile *f)
|
|||
return 0;
|
||||
}
|
||||
|
||||
size_t qemu_file_set_rate_limit(QEMUFile *f, size_t new_rate)
|
||||
int64_t qemu_file_set_rate_limit(QEMUFile *f, int64_t new_rate)
|
||||
{
|
||||
/* any failed or completed migration keeps its state to allow probing of
|
||||
* migration data, but has no associated file anymore */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue