Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1938079rdf; Sun, 5 Nov 2023 22:29:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IGinYv62nSF63SdbUEewioJOIX3Q/vTcBmBViSL8LzezyUmQPaVRlzgkabtf6wt7agcTT64 X-Received: by 2002:a05:6870:2a43:b0:1ef:9f6c:3df1 with SMTP id jd3-20020a0568702a4300b001ef9f6c3df1mr30715711oab.14.1699252175724; Sun, 05 Nov 2023 22:29:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699252175; cv=none; d=google.com; s=arc-20160816; b=khYK0V65YknQmlKf50ypoHuaWtGeYU9oi4/imzzrwY9gJkHPg7iKkdmUbmrFAQ0OKS 1Ty1qrjwHDToYpzzgy5dc7/jwqNT3iY0AuW6nNicK+BJDHklLNqVo4EfzsPpk+RaSZtq tD+t+DT20j9DiHbSzp4g0Yi8xhyEv98P4DliwfEYQqUwds0sqCAAHbWxfH39ITlobq7f JKZBxZU0LXIRMYx/RvDWBr0XCAMnkaPdHckObY14PMQiQoFpAvyOKS7doVya47iUFcCm PINFB5PaT6F4GMcz54pO4oeTqtyn8NtyBw5bdg9pPAgPiHg7eANh4//lUEhovLb4Ot8F nwlQ== 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=45PhfvQtGT755taFp1AuA9YyXPbntVdb2BxqOqdKRDE=; fh=kf6Q5u3fSOqGREGphy5fJgsaEXgPadDke3iAKi6K18g=; b=nFui6bFv2GbqdV5Cg/6Oia9zsAOtqIv152aAgKlU1mG+liaW8vf68c2TNDPD1EvOI4 Jl1/hSYlq05y7oxy8S2vjHCwdYGKqtXS1d+Ia0FLJmmYQfI5Wn0/K0cNvIqoqWDAmMPS loNp67HflNtxyPDTfz6Y77SFZJHbHdvsbEI7XPh6UjDP4/QOR8M6eul7VqmFg6mdsE0p yLJ0PP3yiak5auhf8H0jJNVbB2gmGs1myG6KxSCOe0BWCZi1zIvygxVeDqFH4xropaWI ZcZyQVLP7Sgrv/ACRj5oZ1Aof3pVqmLDW67dEpmNxLmTPsZEvG9vwuA4XL2tZsOtCvof kwYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bv3-20020a632e03000000b0058bc1c85714si7135195pgb.467.2023.11.05.22.29.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 22:29:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 89EEF80ADEF9; Sun, 5 Nov 2023 22:29:32 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230435AbjKFG3V (ORCPT + 99 others); Mon, 6 Nov 2023 01:29:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230413AbjKFG3U (ORCPT ); Mon, 6 Nov 2023 01:29:20 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 919ADF2; Sun, 5 Nov 2023 22:29:15 -0800 (PST) Received: from kwepemm000005.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4SP1ZP4P4Kz1P7x5; Mon, 6 Nov 2023 14:26:05 +0800 (CST) Received: from [10.67.121.110] (10.67.121.110) by kwepemm000005.china.huawei.com (7.193.23.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Mon, 6 Nov 2023 14:28:42 +0800 Subject: Re: [PATCH v18 2/2] Documentation: add debugfs description for vfio To: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , , , , CC: , , , References: <20231028075447.41939-1-liulongfang@huawei.com> <20231028075447.41939-3-liulongfang@huawei.com> <356dd79e-9079-4bbc-9b64-9468b6f7b6a7@redhat.com> From: liulongfang Message-ID: Date: Mon, 6 Nov 2023 14:28:41 +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: <356dd79e-9079-4bbc-9b64-9468b6f7b6a7@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.121.110] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm000005.china.huawei.com (7.193.23.27) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-3.9 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Sun, 05 Nov 2023 22:29:32 -0800 (PST) On 2023/10/30 14:51, Cédric Le Goater write: > On 10/28/23 09:54, Longfang Liu wrote: >> 1.Add an debugfs document description file to help users understand >> how to use the accelerator live migration driver's debugfs. >> 2.Update the file paths that need to be maintained in MAINTAINERS > > Should we have 2 patches instead ? > It is also good to add a separate patch. Thanks, Longfang. > Anyhow, > > Reviewed-by: Cédric Le Goater > > Thanks, > > C. > > >> >> Signed-off-by: Longfang Liu >> --- >>   Documentation/ABI/testing/debugfs-vfio | 25 +++++++++++++++++++++++++ >>   MAINTAINERS                            |  1 + >>   2 files changed, 26 insertions(+) >>   create mode 100644 Documentation/ABI/testing/debugfs-vfio >> >> diff --git a/Documentation/ABI/testing/debugfs-vfio b/Documentation/ABI/testing/debugfs-vfio >> new file mode 100644 >> index 000000000000..445e9f58f924 >> --- /dev/null >> +++ b/Documentation/ABI/testing/debugfs-vfio >> @@ -0,0 +1,25 @@ >> +What:        /sys/kernel/debug/vfio >> +Date:        Oct 2023 >> +KernelVersion:  6.7 >> +Contact:    Longfang Liu >> +Description:    This debugfs file directory is used for debugging >> +        of vfio devices, it's a common directory for all vfio devices. >> +        Vfio core will create a device subdirectory under this >> +        directory. >> + >> +What:        /sys/kernel/debug/vfio//migration >> +Date:        Oct 2023 >> +KernelVersion:  6.7 >> +Contact:    Longfang Liu >> +Description:    This debugfs file directory is used for debugging >> +        of vfio devices that support live migration. >> +        The debugfs of each vfio device that supports live migration >> +        could be created under this directory. >> + >> +What:        /sys/kernel/debug/vfio//migration/state >> +Date:        Oct 2023 >> +KernelVersion:  6.7 >> +Contact:    Longfang Liu >> +Description:    Read the live migration status of the vfio device. >> +        The contents of the state file reflects the migration state >> +        relative to those defined in the vfio_device_mig_state enum >> diff --git a/MAINTAINERS b/MAINTAINERS >> index b19995690904..a6be3b4219c7 100644 >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -22591,6 +22591,7 @@ L:    kvm@vger.kernel.org >>   S:    Maintained >>   T:    git https://github.com/awilliam/linux-vfio.git >>   F:    Documentation/ABI/testing/sysfs-devices-vfio-dev >> +F:    Documentation/ABI/testing/debugfs-vfio >>   F:    Documentation/driver-api/vfio.rst >>   F:    drivers/vfio/ >>   F:    include/linux/vfio.h > > . >