projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
517a13c
)
No need to iterate if we already are over the limit
author
Juan Quintela
<quintela@redhat.com>
Mon, 21 May 2012 22:38:26 +0000
(
00:38
+0200)
committer
Juan Quintela
<quintela@redhat.com>
Fri, 29 Jun 2012 11:27:28 +0000
(13:27 +0200)
If buffers are full, don't iterate, just exit.
Signed-off-by: Juan Quintela <quintela@redhat.com>
savevm.c
patch
|
blob
|
history
diff --git
a/savevm.c
b/savevm.c
index 987c6c0cd0b65f239ddf7052985bba62f4ac7f70..a15c163b6eac385051417378931a8906b4bd0994 100644
(file)
--- a/
savevm.c
+++ b/
savevm.c
@@
-1626,6
+1626,9
@@
int qemu_savevm_state_iterate(QEMUFile *f)
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);