|
|
4841a6 |
From 3b567f762cbd8d4ffaf717b0baba9cf9fe9614c2 Mon Sep 17 00:00:00 2001
|
|
|
719b13 |
From: Juan Quintela <quintela@redhat.com>
|
|
|
719b13 |
Date: Wed, 18 May 2022 02:52:23 -0300
|
|
|
4841a6 |
Subject: [PATCH 03/37] multifd: Add missing documentation
|
|
|
719b13 |
MIME-Version: 1.0
|
|
|
719b13 |
Content-Type: text/plain; charset=UTF-8
|
|
|
719b13 |
Content-Transfer-Encoding: 8bit
|
|
|
719b13 |
|
|
|
719b13 |
RH-Author: Leonardo Brás <leobras@redhat.com>
|
|
|
4841a6 |
RH-MergeRequest: 191: MSG_ZEROCOPY + Multifd @ rhel8.7
|
|
|
4841a6 |
RH-Commit: [3/26] 924fca4305ebd8669955d456fc1c515f509e6026
|
|
|
4841a6 |
RH-Bugzilla: 2072049
|
|
|
719b13 |
RH-Acked-by: Peter Xu <peterx@redhat.com>
|
|
|
4841a6 |
RH-Acked-by: Daniel P. Berrangé <berrange@redhat.com>
|
|
|
4841a6 |
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
719b13 |
|
|
|
719b13 |
Signed-off-by: Juan Quintela <quintela@redhat.com>
|
|
|
719b13 |
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
719b13 |
(cherry picked from commit 18ede636bc29fd8bda628fe3e5c593f8c1b734f4)
|
|
|
4841a6 |
(fixed typo in commit message)
|
|
|
719b13 |
Signed-off-by: Leonardo Bras <leobras@redhat.com>
|
|
|
719b13 |
---
|
|
|
719b13 |
migration/multifd-zlib.c | 2 ++
|
|
|
719b13 |
migration/multifd-zstd.c | 2 ++
|
|
|
719b13 |
migration/multifd.c | 1 +
|
|
|
719b13 |
3 files changed, 5 insertions(+)
|
|
|
719b13 |
|
|
|
719b13 |
diff --git a/migration/multifd-zlib.c b/migration/multifd-zlib.c
|
|
|
719b13 |
index ab4ba75d75..f403d2f031 100644
|
|
|
719b13 |
--- a/migration/multifd-zlib.c
|
|
|
719b13 |
+++ b/migration/multifd-zlib.c
|
|
|
719b13 |
@@ -74,6 +74,7 @@ static int zlib_send_setup(MultiFDSendParams *p, Error **errp)
|
|
|
719b13 |
* Close the channel and return memory.
|
|
|
719b13 |
*
|
|
|
719b13 |
* @p: Params for the channel that we are using
|
|
|
719b13 |
+ * @errp: pointer to an error
|
|
|
719b13 |
*/
|
|
|
719b13 |
static void zlib_send_cleanup(MultiFDSendParams *p, Error **errp)
|
|
|
719b13 |
{
|
|
|
719b13 |
@@ -96,6 +97,7 @@ static void zlib_send_cleanup(MultiFDSendParams *p, Error **errp)
|
|
|
719b13 |
*
|
|
|
719b13 |
* @p: Params for the channel that we are using
|
|
|
719b13 |
* @used: number of pages used
|
|
|
719b13 |
+ * @errp: pointer to an error
|
|
|
719b13 |
*/
|
|
|
719b13 |
static int zlib_send_prepare(MultiFDSendParams *p, uint32_t used, Error **errp)
|
|
|
719b13 |
{
|
|
|
719b13 |
diff --git a/migration/multifd-zstd.c b/migration/multifd-zstd.c
|
|
|
719b13 |
index 693bddf8c9..8d657f8860 100644
|
|
|
719b13 |
--- a/migration/multifd-zstd.c
|
|
|
719b13 |
+++ b/migration/multifd-zstd.c
|
|
|
719b13 |
@@ -86,6 +86,7 @@ static int zstd_send_setup(MultiFDSendParams *p, Error **errp)
|
|
|
719b13 |
* Close the channel and return memory.
|
|
|
719b13 |
*
|
|
|
719b13 |
* @p: Params for the channel that we are using
|
|
|
719b13 |
+ * @errp: pointer to an error
|
|
|
719b13 |
*/
|
|
|
719b13 |
static void zstd_send_cleanup(MultiFDSendParams *p, Error **errp)
|
|
|
719b13 |
{
|
|
|
719b13 |
@@ -109,6 +110,7 @@ static void zstd_send_cleanup(MultiFDSendParams *p, Error **errp)
|
|
|
719b13 |
*
|
|
|
719b13 |
* @p: Params for the channel that we are using
|
|
|
719b13 |
* @used: number of pages used
|
|
|
719b13 |
+ * @errp: pointer to an error
|
|
|
719b13 |
*/
|
|
|
719b13 |
static int zstd_send_prepare(MultiFDSendParams *p, uint32_t used, Error **errp)
|
|
|
719b13 |
{
|
|
|
719b13 |
diff --git a/migration/multifd.c b/migration/multifd.c
|
|
|
719b13 |
index 8ea86d81dc..cdeffdc4c5 100644
|
|
|
719b13 |
--- a/migration/multifd.c
|
|
|
719b13 |
+++ b/migration/multifd.c
|
|
|
719b13 |
@@ -66,6 +66,7 @@ static int nocomp_send_setup(MultiFDSendParams *p, Error **errp)
|
|
|
719b13 |
* For no compression this function does nothing.
|
|
|
719b13 |
*
|
|
|
719b13 |
* @p: Params for the channel that we are using
|
|
|
719b13 |
+ * @errp: pointer to an error
|
|
|
719b13 |
*/
|
|
|
719b13 |
static void nocomp_send_cleanup(MultiFDSendParams *p, Error **errp)
|
|
|
719b13 |
{
|
|
|
719b13 |
--
|
|
|
719b13 |
2.35.3
|
|
|
719b13 |
|