diff options
| author | Juan Quintela <quintela@redhat.com> | 2023-03-01 22:17:14 +0100 |
|---|---|---|
| committer | Juan Quintela <quintela@redhat.com> | 2023-04-24 15:01:46 +0200 |
| commit | b4bc342c766640e0cb8a0b72f71e0ee5545fb790 (patch) | |
| tree | edee1d8f3cba46a6e03c26b1a051174d1c30076b /migration/socket.c | |
| parent | 51b07548f7c31793adc178c7460c5f4369733c61 (diff) | |
| download | focaccia-qemu-b4bc342c766640e0cb8a0b72f71e0ee5545fb790.tar.gz focaccia-qemu-b4bc342c766640e0cb8a0b72f71e0ee5545fb790.zip | |
migration: Move migrate_use_zero_copy_send() to options.c
Once that we are there, we rename the function to migrate_zero_copy_send() to be consistent with all other capabilities. We can remove the CONFIG_LINUX guard. We already check that we can't setup this capability in migrate_caps_check(). Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Diffstat (limited to 'migration/socket.c')
| -rw-r--r-- | migration/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/socket.c b/migration/socket.c index f4835a256a..1b6f5baefb 100644 --- a/migration/socket.c +++ b/migration/socket.c @@ -98,7 +98,7 @@ static void socket_outgoing_migration(QIOTask *task, trace_migration_socket_outgoing_connected(data->hostname); - if (migrate_use_zero_copy_send() && + if (migrate_zero_copy_send() && !qio_channel_has_feature(sioc, QIO_CHANNEL_FEATURE_WRITE_ZERO_COPY)) { error_setg(&err, "Zero copy send feature not detected in host kernel"); } |