• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révision48a4a44c1cde382c6b8e7792d01fe7d9b0a59c69 (tree)
l'heure2022-01-28 23:38:23
AuteurJuan Quintela <quintela@redh...>
CommiterJuan Quintela

Message de Log

multifd: Make zlib use iov's

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

Change Summary

Modification

--- a/migration/multifd-zlib.c
+++ b/migration/multifd-zlib.c
@@ -143,6 +143,9 @@ static int zlib_send_prepare(MultiFDSendParams *p, Error **errp)
143143 }
144144 out_size += available - zs->avail_out;
145145 }
146+ p->iov[p->iovs_num].iov_base = z->zbuff;
147+ p->iov[p->iovs_num].iov_len = out_size;
148+ p->iovs_num++;
146149 p->next_packet_size = out_size;
147150 p->flags |= MULTIFD_FLAG_ZLIB;
148151
@@ -162,10 +165,7 @@ static int zlib_send_prepare(MultiFDSendParams *p, Error **errp)
162165 */
163166 static int zlib_send_write(MultiFDSendParams *p, uint32_t used, Error **errp)
164167 {
165- struct zlib_data *z = p->data;
166-
167- return qio_channel_write_all(p->c, (void *)z->zbuff, p->next_packet_size,
168- errp);
168+ return qio_channel_writev_all(p->c, p->iov, p->iovs_num, errp);
169169 }
170170
171171 /**