Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp945075rdb; Fri, 1 Sep 2023 08:22:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4e4Hg70I+IiSLv0aCz38l1ciPqYgect0vCD1uaTH83/dZOvaz1lf4oQwyPMdAqJ2TfP3f X-Received: by 2002:a05:6402:4025:b0:522:ddeb:cdcb with SMTP id d37-20020a056402402500b00522ddebcdcbmr6957520eda.18.1693581763824; Fri, 01 Sep 2023 08:22:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693581763; cv=none; d=google.com; s=arc-20160816; b=oiaH/IuF8ZbtrPx04FnPRhZZ3DSXsotaZ76vTXgYKpUxlk71ZDGQYRD0EzYoxuTeGT H/pHuWvl1pXciqDpTgCb5YWMlRz6ZsQC/09g5WYhQbZce9usfcHZz13suUq/khNY2ABZ VNI2rpdV0H4H5gdbgHLmEIdQtneHJZMWXJP74Dmpm4ZOmPBvV2Cr5qkwUvgJiPwh8IcQ 7NhCOjK3MRxsdMRZldSYqGb/4dMNhHjbG6SBgNokkeqP2oHMw0kl4YCRUWNYE7i45qG9 cVswNNY5WOZN6agPKqFuHwJ7IofM4lLiY5jIZj9LmB7DAL9Is8mjq6xmo+zgd4sDedD+ vH0Q== 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=36va/eG35Q5y9+LUABsqcn0irWLa5CiQhACfFHPbkts=; fh=6RjYAQ34uDeYKm0rLOoNcFiQikSk6+SaiM0Axnq7aoY=; b=P2R3b8HI/X1D5OjN/bqumNZLUpiQUG9bhTxjLLZfas/JcVVR+yo3GJYpDCywBKQkup fIsl3lhvV1QHnrJZVBrU34s+dZpzQzZXbZnz/2pv/C5UC/dnV8tlDmaGAk/rr4hNbVqG +BQuujH/0Diqzy0NlDCXGolhwL4C5WV0ZlDK9ayKno6WDD0i2XDFKnLXea7CQEYazc7B YuNlYGoWE37JbrLpGzBq97bVc1dMJme1bFlNqPradwzm0O1Bo1HETtg05QXHLF+GW6Rl MfAm+BaK2UqEov9mi0V0yAtBxrcgzelHHzC4L2sJ/B59JZ+CE8TUjFxw+/uo6dEOkD+i 1BxA== 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 d26-20020aa7ce1a000000b0052892174844si2793186edv.549.2023.09.01.08.22.08; Fri, 01 Sep 2023 08:22:43 -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 S1348155AbjIACjn (ORCPT + 99 others); Thu, 31 Aug 2023 22:39:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234928AbjIACjn (ORCPT ); Thu, 31 Aug 2023 22:39:43 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52B32E72; Thu, 31 Aug 2023 19:39:40 -0700 (PDT) Received: from kwepemm600005.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RcMb44KZpztSJh; Fri, 1 Sep 2023 10:35:44 +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.31; Fri, 1 Sep 2023 10:39:37 +0800 From: liulongfang To: , , , CC: , , , , Subject: [PATCH v15 2/2] Documentation: add debugfs description for vfio Date: Fri, 1 Sep 2023 10:36:06 +0800 Message-ID: <20230901023606.47587-3-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20230901023606.47587-1-liulongfang@huawei.com> References: <20230901023606.47587-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=-1.9 required=5.0 tests=BAYES_00, 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 From: Longfang Liu 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 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..086a8c52df35 --- /dev/null +++ b/Documentation/ABI/testing/debugfs-vfio @@ -0,0 +1,25 @@ +What: /sys/kernel/debug/vfio +Date: Aug 2023 +KernelVersion: 6.6 +Contact: Longfang Liu +Description: This debugfs file directory is used for debugging + of vfio devices, it's a common directory for all vfio devices. + Each device should create a device subdirectory under this + directory by referencing the public registration interface. + +What: /sys/kernel/debug/vfio//migration +Date: Aug 2023 +KernelVersion: 6.6 +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: Aug 2023 +KernelVersion: 6.6 +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 7b1306615fc0..bd01ca674c60 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -22304,6 +22304,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 -- 2.24.0