[PATCH v1 2/4] migration: remove multifd check with postcopy

Prasad Pandit posted 4 patches 11 months, 3 weeks ago
There is a newer version of this series
[PATCH v1 2/4] migration: remove multifd check with postcopy
Posted by Prasad Pandit 11 months, 3 weeks ago
From: Prasad Pandit <pjp@fedoraproject.org>

Remove multifd capability check with Postcopy mode.
This helps to enable both multifd and postcopy together.

Signed-off-by: Prasad Pandit <pjp@fedoraproject.org>
---
 migration/options.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/migration/options.c b/migration/options.c
index ad8d6989a8..c498558a85 100644
--- a/migration/options.c
+++ b/migration/options.c
@@ -479,11 +479,6 @@ bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp)
             error_setg(errp, "Postcopy is not compatible with ignore-shared");
             return false;
         }
-
-        if (new_caps[MIGRATION_CAPABILITY_MULTIFD]) {
-            error_setg(errp, "Postcopy is not yet compatible with multifd");
-            return false;
-        }
     }
 
     if (new_caps[MIGRATION_CAPABILITY_BACKGROUND_SNAPSHOT]) {
-- 
2.47.0
Re: [PATCH v1 2/4] migration: remove multifd check with postcopy
Posted by Fabiano Rosas 11 months, 3 weeks ago
Prasad Pandit <ppandit@redhat.com> writes:

> From: Prasad Pandit <pjp@fedoraproject.org>
>
> Remove multifd capability check with Postcopy mode.
> This helps to enable both multifd and postcopy together.
>
> Signed-off-by: Prasad Pandit <pjp@fedoraproject.org>
> ---
>  migration/options.c | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/migration/options.c b/migration/options.c
> index ad8d6989a8..c498558a85 100644
> --- a/migration/options.c
> +++ b/migration/options.c
> @@ -479,11 +479,6 @@ bool migrate_caps_check(bool *old_caps, bool *new_caps, Error **errp)
>              error_setg(errp, "Postcopy is not compatible with ignore-shared");
>              return false;
>          }
> -
> -        if (new_caps[MIGRATION_CAPABILITY_MULTIFD]) {
> -            error_setg(errp, "Postcopy is not yet compatible with multifd");
> -            return false;
> -        }

This should be squashed into patch 4. We don't want to enable what
doesn't work yet.

>      }
>  
>      if (new_caps[MIGRATION_CAPABILITY_BACKGROUND_SNAPSHOT]) {
Re: [PATCH v1 2/4] migration: remove multifd check with postcopy
Posted by Prasad Pandit 11 months, 3 weeks ago
On Wed, 27 Nov 2024 at 02:43, Fabiano Rosas <farosas@suse.de> wrote:
> This should be squashed into patch 4. We don't want to enable what
> doesn't work yet.

* Okay.

Thank you.
---
  - Prasad