[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 05/18] migration: Add multifd capability
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PULL 05/18] migration: Add multifd capability |
Date: |
Fri, 22 Sep 2017 14:24:52 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Reviewed-by: Peter Xu <address@hidden>
Reviewed-by: Daniel P. Berrange <address@hidden>
--
Use new DEFINE_PROP
---
migration/migration.c | 10 ++++++++++
migration/migration.h | 1 +
qapi/migration.json | 4 +++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/migration/migration.c b/migration/migration.c
index bac4a99277..958b783bcf 100644
--- a/migration/migration.c
+++ b/migration/migration.c
@@ -1449,6 +1449,15 @@ bool migrate_use_events(void)
return s->enabled_capabilities[MIGRATION_CAPABILITY_EVENTS];
}
+bool migrate_use_multifd(void)
+{
+ MigrationState *s;
+
+ s = migrate_get_current();
+
+ return s->enabled_capabilities[MIGRATION_CAPABILITY_X_MULTIFD];
+}
+
int migrate_use_xbzrle(void)
{
MigrationState *s;
@@ -2227,6 +2236,7 @@ static Property migration_properties[] = {
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_MIG_CAP("x-multifd", MIGRATION_CAPABILITY_X_MULTIFD),
DEFINE_PROP_END_OF_LIST(),
};
diff --git a/migration/migration.h b/migration/migration.h
index 1881e4a754..b7437f16ce 100644
--- a/migration/migration.h
+++ b/migration/migration.h
@@ -174,6 +174,7 @@ bool migrate_postcopy_ram(void);
bool migrate_zero_blocks(void);
bool migrate_auto_converge(void);
+bool migrate_use_multifd(void);
int migrate_use_xbzrle(void);
int64_t migrate_xbzrle_cache_size(void);
diff --git a/qapi/migration.json b/qapi/migration.json
index ee2b3b8733..ec4a88a43a 100644
--- a/qapi/migration.json
+++ b/qapi/migration.json
@@ -341,12 +341,14 @@
# @return-path: If enabled, migration will use the return path even
# for precopy. (since 2.10)
#
+# @x-multifd: Use more than one fd for migration (since 2.11)
+#
# Since: 1.2
##
{ 'enum': 'MigrationCapability',
'data': ['xbzrle', 'rdma-pin-all', 'auto-converge', 'zero-blocks',
'compress', 'events', 'postcopy-ram', 'x-colo', 'release-ram',
- 'block', 'return-path' ] }
+ 'block', 'return-path', 'x-multifd' ] }
##
# @MigrationCapabilityStatus:
--
2.13.5
- [Qemu-devel] [PULL 00/18] Migration PULL request (3rd try), Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 02/18] migration: Teach it about G_SOURCE_REMOVE, Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 03/18] migration: Add comments to channel functions, Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 01/18] migration: Create migration_ioc_process_incoming(), Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 04/18] migration: Create migration_has_all_channels, Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 05/18] migration: Add multifd capability,
Juan Quintela <=
- [Qemu-devel] [PULL 06/18] migration: Create x-multifd-channels parameter, Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 07/18] migration: Create x-multifd-page-count parameter, Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 08/18] migration: Create multifd migration threads, Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 09/18] migration: Split migration_fd_process_incoming, Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 10/18] bitmap: remove BITOP_WORD(), Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 11/18] bitmap: introduce bitmap_count_one(), Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 12/18] bitmap: provide to_le/from_le helpers, Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 13/18] migration: add has_postcopy savevm handler, Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 14/18] migration: fix ram_save_pending, Juan Quintela, 2017/09/22
- [Qemu-devel] [PULL 15/18] migration: split common postcopy out of ram postcopy, Juan Quintela, 2017/09/22