commit | aac844ed97c39b8c0fb16d7bf9851fdedf325be3 | [log] [tgz] |
---|---|---|
author | Juan Quintela <quintela@redhat.com> | Tue May 22 00:38:26 2012 +0200 |
committer | Juan Quintela <quintela@redhat.com> | Fri Jun 29 13:27:28 2012 +0200 |
tree | 632229d7217f3211e0371463beaa26788d9175fe | |
parent | 517a13c91a975987b4c2850c08078bd3cef4dce7 [diff] |
No need to iterate if we already are over the limit If buffers are full, don't iterate, just exit. Signed-off-by: Juan Quintela <quintela@redhat.com>
diff --git a/savevm.c b/savevm.c index 987c6c0..a15c163 100644 --- a/savevm.c +++ b/savevm.c
@@ -1626,6 +1626,9 @@ if (se->save_live_state == NULL) continue; + if (qemu_file_rate_limit(f)) { + return 0; + } trace_savevm_section_start(); /* Section type */ qemu_put_byte(f, QEMU_VM_SECTION_PART);