Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1961687rdf; Sun, 5 Nov 2023 23:38:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0HaWoy+vUNFLFWdC0SNlgcrCTkWLuJoYuDPn9FnUpz2js1x6DSMbEXzecAD4IF/v5TpOF X-Received: by 2002:a17:902:dac3:b0:1cc:2c45:757a with SMTP id q3-20020a170902dac300b001cc2c45757amr28717313plx.10.1699256304171; Sun, 05 Nov 2023 23:38:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699256304; cv=none; d=google.com; s=arc-20160816; b=rZrD4kHh+zvW+Q1y/pyiOfnRk19n+iYihgh3tGnKq/lvbRFDi8SYVrY8ctZhuEJKes i0xLav+RUyquImJiV3tyTr/XnTuw+8d6LpiBcz/8LpyL7ooDg4Zcm2WBmx15jASaCvle bq0oWCxJ2slnkljwhNwWtSKECFRDpCm8eOMZTTPkWb+m0mlGbaycWwjmrm/INoyMF03V x0rSzedzPx+56JOLfFMYSAJDBMBVkXf/PTFTTEi6FOjCeY+p9YiV0guy34hR/iz6z/y2 BpNIeUaJiwDT1ELGJsRA9R1RElSU8h9/ARgsSbl1QDCgTGPqe4sk3VTM4+I7oyfYZNM3 Y63Q== 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=w2gPoPMfJ04X/JPD5VXY4bb4yOSX4V1RRQd1u4Z5I88=; fh=6RjYAQ34uDeYKm0rLOoNcFiQikSk6+SaiM0Axnq7aoY=; b=IXMFJbRTvTRN7pde0NebgqFqyjqPpewaXQk9UUe4Ic75s+Y//PhDdH4Pr4qv85JGxU qhlFQQXy0eipK5DKQia4W+fJA+SzO8ZbO8/nCuazCZycQ9xVL60u1fs+ZeuLCGZOgVdE 7x3sa/qVCxN+o3FXuAz/UqtpoheeMMFN3E4vGYwy3EQ6/13MaaeM0qAjsdn16IP1qcsx O+rS5Hmzm0MyHi8wq6juS5WtOmOZ8CQcN3JbZ7LkmEQSNd8oUli6EAWJCzgJDUlxBr0+ L6PDaGCgszyOza0ZDGpIHQggSUwMM9BYvrDXe3P4eDazk7nhslQX3nYPjuicfYegV1+M gl7g== 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:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q13-20020a170902c74d00b001c62b9d56f8si7138095plq.606.2023.11.05.23.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 23:38:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 27387802D538; Sun, 5 Nov 2023 23:38:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231238AbjKFHiV (ORCPT + 99 others); Mon, 6 Nov 2023 02:38:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231202AbjKFHiT (ORCPT ); Mon, 6 Nov 2023 02:38:19 -0500 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F023AD57; Sun, 5 Nov 2023 23:38:14 -0800 (PST) Received: from kwepemm000005.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4SP34T4qvtzMmTc; Mon, 6 Nov 2023 15:33:45 +0800 (CST) Received: from huawei.com (10.50.165.33) 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 15:26:34 +0800 From: Longfang Liu To: , , , CC: , , , , Subject: [PATCH v19 2/3] Documentation: add debugfs description for vfio Date: Mon, 6 Nov 2023 15:22:24 +0800 Message-ID: <20231106072225.28577-3-liulongfang@huawei.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20231106072225.28577-1-liulongfang@huawei.com> References: <20231106072225.28577-1-liulongfang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.50.165.33] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm000005.china.huawei.com (7.193.23.27) 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,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 05 Nov 2023 23:38:23 -0800 (PST) Add an debugfs document description file to help users understand how to use the accelerator live migration driver's debugfs. Signed-off-by: Longfang Liu Reviewed-by: Cedric Le Goater --- Documentation/ABI/testing/debugfs-vfio | 25 +++++++++++++++++++++++++ 1 file changed, 25 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..210eca135979 --- /dev/null +++ b/Documentation/ABI/testing/debugfs-vfio @@ -0,0 +1,25 @@ +What: /sys/kernel/debug/vfio +Date: Nov 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: Nov 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: Nov 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 -- 2.24.0