Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4FB4C636CC for ; Fri, 3 Feb 2023 07:44:22 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNqjL-0001G2-Lj; Fri, 03 Feb 2023 02:43:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNqjF-0001DS-Fn for qemu-devel@nongnu.org; Fri, 03 Feb 2023 02:43:27 -0500 Received: from szxga02-in.huawei.com ([45.249.212.188]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNqjD-00030i-N7 for qemu-devel@nongnu.org; Fri, 03 Feb 2023 02:43:25 -0500 Received: from dggpeml500022.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4P7SHz5ykbzRrPs; Fri, 3 Feb 2023 15:40:47 +0800 (CST) Received: from localhost.localdomain (10.175.124.27) by dggpeml500022.china.huawei.com (7.185.36.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Fri, 3 Feb 2023 15:43:03 +0800 To: CC: , , , , , , , Subject: [RFC PATCH V2 0/2] migration: support query migration thread information Date: Fri, 3 Feb 2023 15:35:17 +0800 Message-ID: <20230203073519.2969147-1-jiangjiacheng@huawei.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpeml500022.china.huawei.com (7.185.36.66) X-CFilter-Loop: Reflected Received-SPF: pass client-ip=45.249.212.188; envelope-from=jiangjiacheng@huawei.com; helo=szxga02-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Jiang Jiacheng From: Jiang Jiacheng via Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org We need get more migration thread information to support migration pin, especially thread name and its pid. Add an qmp interface to query migration threads information. v2 of: https://lists.nongnu.org/archive/html/qemu-devel/2023-01/msg04618.html diff to v2: * remove the event that report thread name * modify the qmp interface, now it doesn't need thread name and return with all the migration threads information we saved Jiang Jiacheng (2): migration: Introduce interface query-migrationthreads migration: save/delete migration thread info migration/meson.build | 1 + migration/migration.c | 5 ++++ migration/multifd.c | 5 ++++ migration/threadinfo.c | 54 ++++++++++++++++++++++++++++++++++++++++++ migration/threadinfo.h | 28 ++++++++++++++++++++++ qapi/migration.json | 29 +++++++++++++++++++++++ 6 files changed, 122 insertions(+) create mode 100644 migration/threadinfo.c create mode 100644 migration/threadinfo.h -- 2.33.0