qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: qemu-devel@nongnu.org
Cc: dgilbert@redhat.com, lvivier@redhat.com, peterx@redhat.com
Subject: [Qemu-devel] [PULL 09/16] migration: export capabilities to props
Date: Tue, 18 Jul 2017 17:41:20 +0200	[thread overview]
Message-ID: <20170718154127.6459-10-quintela@redhat.com> (raw)
In-Reply-To: <20170718154127.6459-1-quintela@redhat.com>

From: Peter Xu <peterx@redhat.com>

Do the same thing to migration capabilities, just like what we did in
previous patch for migration parameters.

Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1500349150-13240-4-git-send-email-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 migration/migration.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/migration/migration.c b/migration/migration.c
index f5ed333..16f5d9a 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -2002,6 +2002,9 @@ void migration_global_dump(Monitor *mon)
                    ms->send_configuration, ms->send_section_footer);
 }
 
+#define DEFINE_PROP_MIG_CAP(name, x)             \
+    DEFINE_PROP_BOOL(name, MigrationState, enabled_capabilities[x], false)
+
 static Property migration_properties[] = {
     DEFINE_PROP_BOOL("store-global-state", MigrationState,
                      store_global_state, true),
@@ -2035,6 +2038,20 @@ static Property migration_properties[] = {
     DEFINE_PROP_INT64("x-checkpoint-delay", MigrationState,
                       parameters.x_checkpoint_delay,
                       DEFAULT_MIGRATE_X_CHECKPOINT_DELAY),
+
+    /* Migration capabilities */
+    DEFINE_PROP_MIG_CAP("x-xbzrle", MIGRATION_CAPABILITY_XBZRLE),
+    DEFINE_PROP_MIG_CAP("x-rdma-pin-all", MIGRATION_CAPABILITY_RDMA_PIN_ALL),
+    DEFINE_PROP_MIG_CAP("x-auto-converge", MIGRATION_CAPABILITY_AUTO_CONVERGE),
+    DEFINE_PROP_MIG_CAP("x-zero-blocks", MIGRATION_CAPABILITY_ZERO_BLOCKS),
+    DEFINE_PROP_MIG_CAP("x-compress", MIGRATION_CAPABILITY_COMPRESS),
+    DEFINE_PROP_MIG_CAP("x-events", MIGRATION_CAPABILITY_EVENTS),
+    DEFINE_PROP_MIG_CAP("x-postcopy-ram", MIGRATION_CAPABILITY_POSTCOPY_RAM),
+    DEFINE_PROP_MIG_CAP("x-colo", MIGRATION_CAPABILITY_X_COLO),
+    DEFINE_PROP_MIG_CAP("x-release-ram", MIGRATION_CAPABILITY_RELEASE_RAM),
+    DEFINE_PROP_MIG_CAP("x-block", MIGRATION_CAPABILITY_BLOCK),
+    DEFINE_PROP_MIG_CAP("x-return-path", MIGRATION_CAPABILITY_RETURN_PATH),
+
     DEFINE_PROP_END_OF_LIST(),
 };
 
-- 
2.9.4

  parent reply	other threads:[~2017-07-18 15:42 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-18 15:41 [Qemu-devel] [PULL 00/16] Migration Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 01/16] migration/rdma: Fix race on source Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 02/16] migration: Close file on failed migration load Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 03/16] migration/rdma: fix qemu_rdma_block_for_wrid error paths Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 04/16] migration/rdma: Allow cancelling while waiting for wrid Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 05/16] migration/rdma: Safely convert control types Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 06/16] migration/rdma: Send error during cancelling Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 07/16] qdev: provide DEFINE_PROP_INT64() Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 08/16] migration: export parameters to props Juan Quintela
2017-07-18 15:41 ` Juan Quintela [this message]
2017-07-18 15:41 ` [Qemu-devel] [PULL 10/16] migration: introduce migrate_params_check() Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 11/16] migration: provide migrate_params_apply() Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 12/16] migration: check global params for validity Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 13/16] migration: remove check against colo support Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 14/16] migration: provide migrate_caps_check() Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 15/16] migration: provide migrate_cap_add() Juan Quintela
2017-07-18 15:41 ` [Qemu-devel] [PULL 16/16] migration: check global caps for validity Juan Quintela
2017-07-18 19:40 ` [Qemu-devel] [PULL 00/16] Migration no-reply
2017-07-19  6:48   ` Juan Quintela
2017-07-19  8:31     ` Dr. David Alan Gilbert
2017-07-19 12:43 ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170718154127.6459-10-quintela@redhat.com \
    --to=quintela@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).