diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-11-23 19:05:54 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-12-02 21:13:39 +0200 |
commit | 3d002df33eb034757d98e1ae529318f57df78f91 (patch) | |
tree | 5c2a07b26b26f74b9b76ee460f567060ce1340f7 /savevm.c | |
parent | migration: stable ram block ordering (diff) | |
download | qemu-kvm-3d002df33eb034757d98e1ae529318f57df78f91.tar.gz qemu-kvm-3d002df33eb034757d98e1ae529318f57df78f91.tar.bz2 qemu-kvm-3d002df33eb034757d98e1ae529318f57df78f91.zip |
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>
Diffstat (limited to 'savevm.c')
-rw-r--r-- | savevm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |