mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
savevm: Implement block_writev_buffer()
Instead of breaking up RAM state into many small chunks, pass the iovec to the block layer for better performance. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
committed by
Stefan Hajnoczi
parent
cf8074b382
commit
05fcc84888
@@ -55,7 +55,7 @@ typedef int (QEMUFileGetFD)(void *opaque);
|
||||
* This function writes an iovec to file.
|
||||
*/
|
||||
typedef ssize_t (QEMUFileWritevBufferFunc)(void *opaque, struct iovec *iov,
|
||||
int iovcnt);
|
||||
int iovcnt, int64_t pos);
|
||||
|
||||
typedef struct QEMUFileOps {
|
||||
QEMUFilePutBufferFunc *put_buffer;
|
||||
|
||||
Reference in New Issue
Block a user