mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
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>
This commit is contained in:
parent
517a13c91a
commit
aac844ed97
1 changed files with 3 additions and 0 deletions
3
savevm.c
3
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue