Commit aac844ed authored by Juan Quintela's avatar Juan Quintela
Browse files

No need to iterate if we already are over the limit



If buffers are full, don't iterate, just exit.
Signed-off-by: default avatarJuan Quintela <quintela@redhat.com>
parent 517a13c9
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment