Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4510500rdb; Fri, 15 Sep 2023 04:43:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUehiPcw/6Ut8tSTBebaRPY+4OKiGftcanyQ63wlhSz48uD9o7aUGqgU84mC95f7kmRGap X-Received: by 2002:a05:6870:7029:b0:1d6:4c63:7ba4 with SMTP id u41-20020a056870702900b001d64c637ba4mr1362162oae.3.1694778225468; Fri, 15 Sep 2023 04:43:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694778225; cv=none; d=google.com; s=arc-20160816; b=NGTRKeiU65j5p84qSOYrhQunwHORbPTdTA2NZ5jIk9VT/HEYpmJMFCZaEuXKqz7Na+ r/+4/rZT90SvdePOdR86AZkHa7NPwWz4zwHLeNJylUX9Ks05AYopAPgNm9xwZvHVRaHW d2+dZ/n3L4XNZXCjhVxXcBkRDUKVGpXjHPWWy+ino5d8YLq3EOgWOhpOD+RuehVYi2DV ZjA8X7je86aH8ucBACFeRdWX6WLRnv+JGAVcxEsV2ao9PyWvyFoiEIuzoVGRW24oQlYJ kGr3d/FrlTghnt9ak/ugkiIBSKgTot5xWn6vgP1FhtWIfcFJngO3zvVEsMm8oIT99jdw pYsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=3nn+AmYJt5IwW8i9G1+RsM6qCXGb8LzVIfiQXKl5dtI=; fh=HrYPaQC9oxy+Jdy+EMB0V8K4O8ZV/ci/fmlbSh3ZmMU=; b=Ex0rPDjaAQtD7+9C/XUcpszPe6tuoSqlWNAwb2mEERiATHU+F1/kBDsZhdEfabEivc oMWGNNBC5hCwSrRtDQ6HxPCyAxjYm1CaOh3Dx9dwZwSs1d6YmuApuR5dXlPocXT+5q7S JjPQeKwN9LKtxuOzKFKjebM+91wN7S7qZ541qqVPMGre4WV88QtHE6PexRgQnOV9YpfD j7IJSNtY5r1o+90wsOERtdQhos9azVT9H6ZG7z1msDxQfb1/Hz9gFnB0U0yTJKblxYFY 3/6tUVMe3g0Qll67tga16r59uWjshoW2hnJ8Ahn0h4TeqhX8Uk0NNWUOC/oL1oWabAIv QHyA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a185-20020a6390c2000000b00573f6eafd25si3137802pge.572.2023.09.15.04.43.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 04:43:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id CE6D0802AD26; Thu, 14 Sep 2023 23:46:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232310AbjIOGqU (ORCPT + 99 others); Fri, 15 Sep 2023 02:46:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232375AbjIOGqU (ORCPT ); Fri, 15 Sep 2023 02:46:20 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1A52268F; Thu, 14 Sep 2023 23:46:14 -0700 (PDT) Received: from kwepemm600005.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Rn4QK1BPZzVkxw; Fri, 15 Sep 2023 14:43:21 +0800 (CST) Received: from [10.67.121.110] (10.67.121.110) by kwepemm600005.china.huawei.com (7.193.23.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 15 Sep 2023 14:46:11 +0800 Subject: Re: [PATCH v15 0/2] add debugfs to migration driver To: , , , CC: , , , References: <20230901023606.47587-1-liulongfang@huawei.com> From: liulongfang Message-ID: <2fe9278c-2480-b718-8958-b52fa5c08eb8@huawei.com> Date: Fri, 15 Sep 2023 14:46:10 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20230901023606.47587-1-liulongfang@huawei.com> Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.110] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Sep 2023 23:46:41 -0700 (PDT) On 2023/9/1 10:36, liulongfang wrote: > Add a debugfs function to the migration driver in VFIO to provide > a step-by-step debugfs information for the migration driver. > > Changes v14 -> v15 > Update the output status value of live migration. > > Changes v13 -> v14 > Split the patchset and keep the vfio debugfs frame. > > Changes v12 -> v13 > Solve the problem of open and close competition to debugfs. > > Changes v11 -> v12 > Update loading conditions of vfio debugfs. > > Changes v10 -> v11 > Delete the device restore function in debugfs. > > Changes v9 -> v10 > Update the debugfs file of the live migration driver. > > Changes v8 -> v9 > Update the debugfs directory structure of vfio. > > Changes v7 -> v8 > Add support for platform devices. > > Changes v6 -> v7 > Fix some code style issues. > > Changes v5 -> v6 > Control the creation of debugfs through the CONFIG_DEBUG_FS. > > Changes v4 -> v5 > Remove the newly added vfio_migration_ops and use seq_printf > to optimize the implementation of debugfs. > > Changes v3 -> v4 > Change the migration_debug_operate interface to debug_root file. > > Changes v2 -> v3 > Extend the debugfs function from hisilicon device to vfio. > > Changes v1 -> v2 > Change the registration method of root_debugfs to register > with module initialization. > > Longfang Liu (2): > vfio/migration: Add debugfs to live migration driver > Documentation: add debugfs description for vfio > > Documentation/ABI/testing/debugfs-vfio | 25 ++++++++ > MAINTAINERS | 1 + > drivers/vfio/Makefile | 1 + > drivers/vfio/vfio.h | 14 +++++ > drivers/vfio/vfio_debugfs.c | 80 ++++++++++++++++++++++++++ > drivers/vfio/vfio_main.c | 5 +- > include/linux/vfio.h | 7 +++ > 7 files changed, 132 insertions(+), 1 deletion(-) > create mode 100644 Documentation/ABI/testing/debugfs-vfio > create mode 100644 drivers/vfio/vfio_debugfs.c > Hi, Alex. Is there anything else that needs to be modified in this patchset? Thanks, Longfang.