Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp2457517rwb; Sun, 6 Aug 2023 19:25:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdWerjEQ3PhLjJU/PRg2qbyiz729hPsVftXJtoNQkI6ShcWxCQa3RJecLJibgst/zvJYDq X-Received: by 2002:a05:6358:27a3:b0:134:f326:e819 with SMTP id l35-20020a05635827a300b00134f326e819mr6696703rwb.29.1691375107334; Sun, 06 Aug 2023 19:25:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691375107; cv=none; d=google.com; s=arc-20160816; b=et4QqvFM2E/ISnFhAuQ1FpVGtTcxoRP1fpw403NlNiJVvBBfexKHnobii3TkVwdAzB uBhumf4EoBr4PAJ9Mno3V0mUEg2P43exll/yYOyLSLKSD9+wZFf/ifUp4zdzNHlnuChW dFLtNlgBL8cuRVbI4Slx6OxhOrAba/XXGdaYBrSe5SbEy82lAO3Ztflz/5tmHwoOiswY 5fHZtDvowwq9qTDrvS7MNz7BJjHRHAFwY5V6ifzTHGwy9jcM6e6szEX3i0kPDjyWKsWD ku1xTuWJ9bKZ3ACAq5dHl3CU7nlT+AUiVRBxoGJRUX6T0U3wSmCsp2SV8iohhftGTydL i/+A== 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=SVHrPL3VrBEuSD667JrDmVbY3jaGXJsDsIsYJmhR7hg=; fh=i6bZfnvzvqUq0HC+gCiAxxGIOtSzw7uO7GRqD4OnFqM=; b=AMxrZ6KRnLw1oh1d2vre/Y8G9+gQD+ux0QPFHEGdwxtBuMiIkACzSur2FYQNKUtw0q s8foKlX1fcrGaK7ln0CpSF5hrVCfvtlthEZzcY9jZMufLeOY8h43WBVlHMbL0e2W3rvn tQaNC6Q8CMN73s4B1StUNGYczmeFq7e8sGd+v9Pn12ASr2UL+Z3U4lcdygJB5UMlV5jy XYSa4ovWiOwOQLUGGI444RdqnIoSNhZQ4Akf1AbADllyQVPfhdtB6dqt8zk/Gcj7oulT o7PMA60Uyc5d4sINJQhyHalcKL6HIIfjxs+oD9W0VEfctaOAmOMRXtNnGL6Z83EmNq9S Qf6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b14-20020a631b4e000000b00563ff9573desi4989735pgm.317.2023.08.06.19.24.55; Sun, 06 Aug 2023 19:25:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229810AbjHGBdN (ORCPT + 99 others); Sun, 6 Aug 2023 21:33:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjHGBdM (ORCPT ); Sun, 6 Aug 2023 21:33:12 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23A9810FC for ; Sun, 6 Aug 2023 18:33:11 -0700 (PDT) Received: from kwepemm600005.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4RJzJN4DSMzGprY; Mon, 7 Aug 2023 09:29:40 +0800 (CST) Received: from [10.67.103.158] (10.67.103.158) 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.27; Mon, 7 Aug 2023 09:33:07 +0800 Subject: Re: [PATCH v12 4/4] Documentation: add debugfs description for vfio To: Jason Gunthorpe CC: , , , , , References: <20230728072104.64834-1-liulongfang@huawei.com> <20230728072104.64834-5-liulongfang@huawei.com> From: liulongfang Message-ID: <3c557239-447f-116d-3687-cc6e419f2dcc@huawei.com> Date: Mon, 7 Aug 2023 09:33:07 +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: Content-Type: text/plain; charset="gbk" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.103.158] 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=-9.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,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 On 2023/8/4 22:58, Jason Gunthorpe wrote: > On Fri, Jul 28, 2023 at 03:21:04PM +0800, liulongfang wrote: >> From: Longfang Liu >> >> 1.Add two 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 >> >> Signed-off-by: Longfang Liu >> --- >> .../ABI/testing/debugfs-hisi-migration | 36 +++++++++++++++++++ >> Documentation/ABI/testing/debugfs-vfio | 25 +++++++++++++ >> MAINTAINERS | 2 ++ >> 3 files changed, 63 insertions(+) >> create mode 100644 Documentation/ABI/testing/debugfs-hisi-migration >> create mode 100644 Documentation/ABI/testing/debugfs-vfio >> >> diff --git a/Documentation/ABI/testing/debugfs-hisi-migration b/Documentation/ABI/testing/debugfs-hisi-migration >> new file mode 100644 >> index 000000000000..791dd8a09575 >> --- /dev/null >> +++ b/Documentation/ABI/testing/debugfs-hisi-migration >> @@ -0,0 +1,36 @@ >> +What: /sys/kernel/debug/vfio//migration/hisi_acc/data >> +Date: Aug 2023 >> +KernelVersion: 6.6 >> +Contact: Longfang Liu >> +Description: Read the live migration data of the vfio device. >> + These data include device status data, queue configuration >> + data and some task configuration data. >> + The output format of the data is defined by the live >> + migration driver. >> + >> +What: /sys/kernel/debug/vfio//migration/hisi_acc/attr >> +Date: Aug 2023 >> +KernelVersion: 6.6 >> +Contact: Longfang Liu >> +Description: Read the live migration attributes of the vfio device. >> + it include device status attributes and data length attributes >> + The output format of the attributes is defined by the live >> + migration driver. >> + >> +What: /sys/kernel/debug/vfio//migration/hisi_acc/io_test >> +Date: Aug 2023 >> +KernelVersion: 6.6 >> +Contact: Longfang Liu >> +Description: Trigger the HiSilicon accelerator device to perform >> + the io test through the read operation. If successful, >> + it returns the execution result of mailbox. If fails, >> + it returns error log result. >> + >> +What: /sys/kernel/debug/vfio//migration/hisi_acc/save >> +Date: Aug 2023 >> +KernelVersion: 6.6 >> +Contact: Longfang Liu >> +Description: Trigger the Hisilicon accelerator device to perform >> + the state saving operation of live migration through the read >> + operation, and output the operation log results. > > I still very much do not like this use of debugfs. > > If you want to test migration then make a test program and use the > normal api > These debugfs are just to get internal state data. The test function is no longer executed. The store file with test function has been deleted. Thanks, Longfang. > Creating some parallel backdoor to work the same API is just > unneeded complexity. > > Jason > . >