Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1747168rwl; Sat, 8 Apr 2023 00:46:57 -0700 (PDT) X-Google-Smtp-Source: AKy350Y3FfzLfJvxF05G93eC7Z/9JobRXl997324QymZF5nT5+V1/FyvkVYjCQQSIgQA71yRvbEZ X-Received: by 2002:a17:906:a2c3:b0:92f:b290:78c with SMTP id by3-20020a170906a2c300b0092fb290078cmr940269ejb.21.1680940017128; Sat, 08 Apr 2023 00:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680940017; cv=none; d=google.com; s=arc-20160816; b=WtT5WVdK8xvzdqbPUGcxiGB/VlmK8JjhUMckZB/o93w8hIGHEnCKciw/ig635saGrX g7hvSN/VjoxOqyK00V/9fKbM+WI5Sfh2wekEZ6Tq1azakKPpmvxSHXHn0966yLE9usZe PpHIe1B8ue5hvoanmXUg93ekmS8Mo88o1PSKmbcb57xSnvjl134YhVaNdyzhvArF9VXR Rs7l41Bm6HiNgKXsx653Xdh2mqjR4opsKYGrlwNLOWBb2bVORjSeTRNj52aocYOYIS94 Dw7iSUb5rrAU/2JtemIICjXpLIPvUB1ujodikiPPiDsPtF1NYQqSFrBHALntAc6Zdj3B 6Trw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IExVAjhn6ZFSxtjJiEYr3lWJEwFLM6BAlyOIez3Do08=; b=M8OwZVgPHFYrYwB3MWJxd05EmTxCqpU/x9E+jIzNKItIBMI4cfJnENVdatfLLm8epl EC9hHY/h2t1DT/8af5zobyYfJLyfyChzHRXBP8QxJDcso7CON0k4DfEBd39TDjzN44kV Hi3xsSwverHhK2gEbLNlPZcAt2BmRmp1t26Rija6V5qA6a5azntQQoRDWCLfE1rPCRE1 QULiJgEv2bHbXmTvgt3+SDgk0h9H24k/xCpV5jJAbW9KRLYlBlmGggEXgPd0LQblI3Xk qZaK+ziZZYmv9iSl3whQevdNCdYUZIpiUv4xssZ5HSfuKyaLP13Fho1Oq0doaFnkyLR0 ee1Q== 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 ne14-20020a1709077b8e00b008dc76bf3a69si5795157ejc.735.2023.04.08.00.46.32; Sat, 08 Apr 2023 00:46:57 -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 S229776AbjDHHpg (ORCPT + 99 others); Sat, 8 Apr 2023 03:45:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbjDHHpe (ORCPT ); Sat, 8 Apr 2023 03:45:34 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E280D323 for ; Sat, 8 Apr 2023 00:45:17 -0700 (PDT) Received: from kwepemm600005.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4PtnL33wYnzrZSJ; Sat, 8 Apr 2023 15:43:55 +0800 (CST) Received: from huawei.com (10.50.163.32) 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.23; Sat, 8 Apr 2023 15:45:14 +0800 From: Longfang Liu To: , , , CC: , , , Subject: [PATCH v10 4/5] Documentation: add debugfs description for vfio Date: Sat, 8 Apr 2023 15:42:23 +0800 Message-ID: <20230408074224.62608-5-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20230408074224.62608-1-liulongfang@huawei.com> References: <20230408074224.62608-1-liulongfang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.50.163.32] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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 | 39 +++++++++++++++++++ Documentation/ABI/testing/debugfs-vfio | 25 ++++++++++++ MAINTAINERS | 2 + 3 files changed, 66 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..e67478685ed0 --- /dev/null +++ b/Documentation/ABI/testing/debugfs-hisi-migration @@ -0,0 +1,39 @@ +What: /sys/kernel/debug/vfio//migration/hisi_acc/data +Date: April 2023 +KernelVersion: 6.2 +Contact: Longfang Liu +Description: Read the live migration data of the vfio device. + The output format of the data is defined by the live + migration driver. + +What: /sys/kernel/debug/vfio//migration/hisi_acc/attr +Date: April 2023 +KernelVersion: 6.2 +Contact: Longfang Liu +Description: Read the live migration attributes of the vfio device. + The output format of the attributes is defined by the live + migration driver. + +What: /sys/kernel/debug/vfio//migration/hisi_acc/io_test +Date: April 2023 +KernelVersion: 6.2 +Contact: Longfang Liu +Description: Trigger the HiSilicon accelerator device to perform + the io test through the read operation, and directly output + the test result. + +What: /sys/kernel/debug/vfio//migration/hisi_acc/save +Date: April 2023 +KernelVersion: 6.2 +Contact: Longfang Liu +Description: Trigger the Hisilicon accelerator device to perform + the state saving operation of live migration through the read + operation, and directly output the operation result. + +What: /sys/kernel/debug/vfio//migration/hisi_acc/restore +Date: April 2023 +KernelVersion: 6.2 +Contact: Longfang Liu +Description: Trigger the Hisilicon accelerator device to perform + the state restoration operation of live migration through + the read operation, and directly output the operation result. \ No newline at end of file diff --git a/Documentation/ABI/testing/debugfs-vfio b/Documentation/ABI/testing/debugfs-vfio new file mode 100644 index 000000000000..85d2b676cb87 --- /dev/null +++ b/Documentation/ABI/testing/debugfs-vfio @@ -0,0 +1,25 @@ +What: /sys/kernel/debug/vfio +Date: April 2023 +KernelVersion: 6.2 +Contact: Longfang Liu +Description: This debugfs file directory is used for debugging + of vfio devices. + Each device can create a device subdirectory under this + directory by referencing the public registration interface. + +What: /sys/kernel/debug/vfio//migration +Date: April 2023 +KernelVersion: 6.2 +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: April 2023 +KernelVersion: 6.2 +Contact: Longfang Liu +Description: Read the live migration status of the vfio device. + The status of these live migrations includes: + ERROR, RUNNING, STOP, STOP_COPY, RESUMING. diff --git a/MAINTAINERS b/MAINTAINERS index 61d3d019cfc7..147c597c9239 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -21860,6 +21860,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 @@ -21877,6 +21878,7 @@ M: Longfang Liu M: Shameer Kolothum L: kvm@vger.kernel.org S: Maintained +F: Documentation/ABI/testing/debugfs-hisi-migration F: drivers/vfio/pci/hisilicon/ VFIO MEDIATED DEVICE DRIVERS -- 2.24.0