qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 06/43] migration: Move migrate_use_compression() to options.c


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [PATCH 06/43] migration: Move migrate_use_compression() to options.c
Date: Thu, 20 Apr 2023 15:58:26 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

On 02.03.23 19:33, Juan Quintela wrote:
Once that we are there, we rename the function to migrate_compress()
to be consistent with all other capabilities.

Signed-off-by: Juan Quintela <quintela@redhat.com>

Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>

---
  migration/migration.h |  1 -
  migration/options.h   |  1 +
  migration/migration.c | 11 +----------
  migration/options.c   |  9 +++++++++

[..]

--- a/migration/options.c
+++ b/migration/options.c
@@ -41,6 +41,15 @@ bool migrate_colo(void)
      return s->capabilities[MIGRATION_CAPABILITY_X_COLO];
  }
+bool migrate_compress(void)
+{
+    MigrationState *s;
+
+    s = migrate_get_current();
+
+    return s->capabilities[MIGRATION_CAPABILITY_COMPRESS];
+}

Probably, we could generate these functions automatically, or at least have a 
helper, so that all such functions are one-line wrappers on that helper.

--
Best regards,
Vladimir




reply via email to

[Prev in Thread] Current Thread [Next in Thread]