diff options
| author | Fabiano Rosas <farosas@suse.de> | 2024-08-27 14:45:51 -0300 |
|---|---|---|
| committer | Fabiano Rosas <farosas@suse.de> | 2024-09-03 16:24:35 -0300 |
| commit | 112f7d1b752543de06ae96210a14abbed7913922 (patch) | |
| tree | 6f7dd5424f22b642624192b30331c70df0e10575 /migration/file.c | |
| parent | 171056ec91bf6c895864d11857dd3add1f565492 (diff) | |
| download | focaccia-qemu-112f7d1b752543de06ae96210a14abbed7913922.tar.gz focaccia-qemu-112f7d1b752543de06ae96210a14abbed7913922.zip | |
migration/multifd: Pass in MultiFDPages_t to file_write_ramblock_iov
We want to stop dereferencing 'pages' so it can be replaced by an opaque pointer in the next patches. Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'migration/file.c')
| -rw-r--r-- | migration/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/migration/file.c b/migration/file.c index 6451a21c86..7f11e26f5c 100644 --- a/migration/file.c +++ b/migration/file.c @@ -196,12 +196,13 @@ void file_start_incoming_migration(FileMigrationArgs *file_args, Error **errp) } int file_write_ramblock_iov(QIOChannel *ioc, const struct iovec *iov, - int niov, RAMBlock *block, Error **errp) + int niov, MultiFDPages_t *pages, Error **errp) { ssize_t ret = 0; int i, slice_idx, slice_num; uintptr_t base, next, offset; size_t len; + RAMBlock *block = pages->block; slice_idx = 0; slice_num = 1; |