migration: remove the QEMUFileOps 'writev_buffer' callback
This directly implements the writev_buffer logic using QIOChannel APIs. Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
committed by
Dr. David Alan Gilbert
parent
f759d7050b
commit
ec2135eec8
@@ -29,14 +29,6 @@
|
||||
#include "exec/cpu-common.h"
|
||||
#include "io/channel.h"
|
||||
|
||||
/*
|
||||
* This function writes an iovec to file. The handler must write all
|
||||
* of the data or return a negative errno value.
|
||||
*/
|
||||
typedef ssize_t (QEMUFileWritevBufferFunc)(void *opaque, struct iovec *iov,
|
||||
int iovcnt, int64_t pos,
|
||||
Error **errp);
|
||||
|
||||
/*
|
||||
* This function provides hooks around different
|
||||
* stages of RAM migration.
|
||||
@@ -69,7 +61,6 @@ typedef size_t (QEMURamSaveFunc)(QEMUFile *f,
|
||||
typedef QEMUFile *(QEMURetPathFunc)(void *opaque);
|
||||
|
||||
typedef struct QEMUFileOps {
|
||||
QEMUFileWritevBufferFunc *writev_buffer;
|
||||
QEMURetPathFunc *get_return_path;
|
||||
} QEMUFileOps;
|
||||
|
||||
|
Reference in New Issue
Block a user