]> git.proxmox.com Git - qemu.git/commit - savevm.c
migration: use a single I/O operation when writev_buffer is not defined
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Apr 2013 11:29:55 +0000 (13:29 +0200)
committerJuan Quintela <quintela@redhat.com>
Tue, 9 Apr 2013 13:00:13 +0000 (15:00 +0200)
commit7ce51f1b8157a2aa6bd3945bba9904442d3c3cdd
tree6c13c0a135b4c917c75f13365221fe4dd87c3edd
parentaf74db72d33e4776d7d1430b57d0bf065a6f03df
migration: use a single I/O operation when writev_buffer is not defined

The recent patches to use vectored I/O for RAM migration caused a
regression in savevm speed.  To restore previous performance,
add data to the buffer in qemu_put_buffer_async whenever writev_buffer
is not available in the QEMUFile.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
savevm.c