代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/qemu 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 16c188d246f8d74f3d25098effdb836cdeb17e16 Mon Sep 17 00:00:00 2001
From: jipengfei <jipengfei_yewu@cmss.chinamobile.com>
Date: Sat, 1 Jul 2023 13:08:53 +0800
Subject: [PATCH] migration: report compress thread pid to libvirt
Supports migrating compressed threads bound to physical cores,qemu need to tell libvirt the compress thread pids.
Signed-off-by:jipengfei <jipengfei_yewu@cmss.chinamobile.com>
---
migration/ram.c | 3 +++
qapi/migration.json | 13 +++++++++++++
2 files changed, 16 insertions(+)
diff --git a/migration/ram.c b/migration/ram.c
index c3484ee1a9..c6c59b54d9 100644
--- a/migration/ram.c
+++ b/migration/ram.c
@@ -755,6 +755,9 @@ static void *do_data_compress(void *opaque)
RAMBlock *block;
bool zero_page;
+ /* report compress thread pids to libvirt */
+ qapi_event_send_migration_compress_pid(qemu_get_thread_id());
+
qemu_mutex_lock(¶m->mutex);
while (!param->quit) {
if (param->block) {
diff --git a/qapi/migration.json b/qapi/migration.json
index 8e18fd30e4..e965f4329b 100644
--- a/qapi/migration.json
+++ b/qapi/migration.json
@@ -1308,6 +1308,19 @@
{ 'event': 'MIGRATION_PID',
'data': { 'pid': 'int' } }
+##
+# @MIGRATION_COMPRESS_PID:
+#
+# Emitted when compress thread appear
+#
+# @pid: pid of compress thread
+#
+# Since: 6.2
+##
+{ 'event': 'MIGRATION_COMPRESS_PID',
+ 'data': { 'pid': 'int' } }
+
+
##
# @COLOMessage:
#
--
2.41.0.windows.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。