Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22058197rwd; Fri, 30 Jun 2023 03:22:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlElBFUoDfqVoJ8SxNmURHfXumSel0sRZRL7TD8S95hCOdVsnq6LQ6evfF9j6pS4o36N44Fj X-Received: by 2002:a17:90a:9903:b0:262:e912:270f with SMTP id b3-20020a17090a990300b00262e912270fmr1736335pjp.29.1688120526943; Fri, 30 Jun 2023 03:22:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688120526; cv=none; d=google.com; s=arc-20160816; b=0/2Ocn/7KjvPu30RLtOrrv//tuJiadoXhi9gZxhZJ6438S7DuYlcIF+lIc9hdQupRV o7J/DreeJTKZHe8qms9F9ExuS0tgsjFF5FPKdX9YVjmi8yQKWzp02+C7JegZ8q+28zdu hasR5oPROg0QRETnW/TjhzL3rn4l0DJkAUdYh429rrEoPr4Ir86WqAiG1aydF4ic96VK hA6Jpi8kBMfKAfyIhbQ76QcXvY2O7tTpU9EMN7O8cPLy2oRB9D/vTjXgoRS+Hl2MUUXW H5HdWVEgZBX7doMEAnOjKVdBQhCx9TUny7yQCuTIHrP2IZOSqw74XRJLavhwqNF7MQ/H Ebog== 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=9lsXMsox47nSXodLX5pq/9P0fDrCNvJy1fnywS1ccgc=; fh=6zVQB5kyTuWlUVk5uqnsme6LoaXROAcdZ+o72g4GSvQ=; b=g5VKTBD7JQVSYeUr0LoJb+EGp64K4ReDcTIw3OeuSByvhHgiHJss7M7BPZW/5Ivk+r DAIO9ksqLAPNIJ9O7HrZ3m9V1Qz17mjjD/0YZfz+GfluVLy8WNAJVnZo2mmkXtN1IeHD xMljbm3LxCb94Shmw1DlZEtG9MzoWVljBWGeup5vyyMSMtVbHxndsHiZe1WpoVZK0H6S btlNG+A6ebIVk5sP8ap/hxQIxDif4g9mX7JsR9IRkIr+SkgFmAEf92JzBxtB2mnfL1jf XAZ2Q2moRiaPGCdQss/EOiwW7VlXA/vdzeSKc1HMb8dPRO+xkZ3nMR7Zg3mNCVfrdqAo Owyg== 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 pf12-20020a17090b1d8c00b002501d633225si15723041pjb.11.2023.06.30.03.21.52; Fri, 30 Jun 2023 03:22:06 -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 S232854AbjF3J2x (ORCPT + 99 others); Fri, 30 Jun 2023 05:28:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232559AbjF3J2t (ORCPT ); Fri, 30 Jun 2023 05:28:49 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F24C72D69 for ; Fri, 30 Jun 2023 02:28:47 -0700 (PDT) Received: from kwepemm600005.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QsqgW2dSbzcd4d; Fri, 30 Jun 2023 17:25:59 +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.27; Fri, 30 Jun 2023 17:28:45 +0800 From: liulongfang To: , , , CC: , , , Subject: [PATCH v11 4/4] Documentation: add debugfs description for vfio Date: Fri, 30 Jun 2023 17:24:57 +0800 Message-ID: <20230630092457.54902-5-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20230630092457.54902-1-liulongfang@huawei.com> References: <20230630092457.54902-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: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemm600005.china.huawei.com (7.193.23.191) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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 | 32 +++++++++++++++++++ Documentation/ABI/testing/debugfs-vfio | 25 +++++++++++++++ MAINTAINERS | 2 ++ 3 files changed, 59 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..0dfc7008a3e1 --- /dev/null +++ b/Documentation/ABI/testing/debugfs-hisi-migration @@ -0,0 +1,32 @@ +What: /sys/kernel/debug/vfio//migration/hisi_acc/data +Date: June 2023 +KernelVersion: 6.4 +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: June 2023 +KernelVersion: 6.4 +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: June 2023 +KernelVersion: 6.4 +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: June 2023 +KernelVersion: 6.4 +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. + diff --git a/Documentation/ABI/testing/debugfs-vfio b/Documentation/ABI/testing/debugfs-vfio new file mode 100644 index 000000000000..e2132a2f602b --- /dev/null +++ b/Documentation/ABI/testing/debugfs-vfio @@ -0,0 +1,25 @@ +What: /sys/kernel/debug/vfio +Date: June 2023 +KernelVersion: 6.4 +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: June 2023 +KernelVersion: 6.4 +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: June 2023 +KernelVersion: 6.4 +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 ce6ac552d8f6..bdd6a5e7350f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -22098,6 +22098,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 @@ -22115,6 +22116,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