mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
migration: Add zero-copy-send parameter for QMP/HMP for Linux
Add property that allows zero-copy migration of memory pages on the sending side, and also includes a helper function migrate_use_zero_copy_send() to check if it's enabled. No code is introduced to actually do the migration, but it allow future implementations to enable/disable this feature. On non-Linux builds this parameter is compiled-out. Signed-off-by: Leonardo Bras <leobras@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20220513062836.965425-5-leobras@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
2bc58ffc29
commit
abb6295b3a
5 changed files with 76 additions and 2 deletions
|
@ -74,9 +74,16 @@ static void socket_outgoing_migration(QIOTask *task,
|
|||
|
||||
if (qio_task_propagate_error(task, &err)) {
|
||||
trace_migration_socket_outgoing_error(error_get_pretty(err));
|
||||
} else {
|
||||
trace_migration_socket_outgoing_connected(data->hostname);
|
||||
goto out;
|
||||
}
|
||||
|
||||
trace_migration_socket_outgoing_connected(data->hostname);
|
||||
|
||||
if (migrate_use_zero_copy_send()) {
|
||||
error_setg(&err, "Zero copy send not available in migration");
|
||||
}
|
||||
|
||||
out:
|
||||
migration_channel_connect(data->s, sioc, data->hostname, err);
|
||||
object_unref(OBJECT(sioc));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue