[PATCH v4 0/4] MSG_ZEROCOPY fixes & improvements

Leonardo Bras posted 4 patches 1 year, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220620053944.257547-1-leobras@redhat.com
Maintainers: "Daniel P. Berrangé" <berrange@redhat.com>, Juan Quintela <quintela@redhat.com>, "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Eric Blake <eblake@redhat.com>, Markus Armbruster <armbru@redhat.com>
qapi/migration.json   | 33 +++++++-----------------
migration/multifd.h   |  1 +
io/channel-socket.c   | 19 ++++++++++----
migration/migration.c | 52 ++++++++++++++------------------------
migration/multifd.c   | 58 ++++++++++++++++++++++++-------------------
migration/ram.c       |  7 ++++++
monitor/hmp-cmds.c    |  6 -----
7 files changed, 83 insertions(+), 93 deletions(-)
[PATCH v4 0/4] MSG_ZEROCOPY fixes & improvements
Posted by Leonardo Bras 1 year, 11 months ago
Patches 1 & 2 are about a fix needed to make zero-copy flush work.
The code that incremented the sendmsg counter ended up missing in
the last versions of the patchset, causing the flush to never
happen.

Patch 3 is about an improvement on flushing that improves 
sending performance.

Patch 4 is about making zero-copy-send a migration capability,
instead of a migration parameter. Which actually makes more sense
and helps the implementation of the libvirt code.

Leonardo Bras (4):
  QIOChannelSocket: Introduce assert and reduce ifdefs to improve
    readability
  QIOChannelSocket: Fix zero-copy send so socket flush works
  migration: zero-copy flush only at the end of bitmap scanning
  migration: Change zero_copy_send from migration parameter to migration
    capability

 qapi/migration.json   | 33 +++++++-----------------
 migration/multifd.h   |  1 +
 io/channel-socket.c   | 19 ++++++++++----
 migration/migration.c | 52 ++++++++++++++------------------------
 migration/multifd.c   | 58 ++++++++++++++++++++++++-------------------
 migration/ram.c       |  7 ++++++
 monitor/hmp-cmds.c    |  6 -----
 7 files changed, 83 insertions(+), 93 deletions(-)

-- 
2.36.1