Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2553898rdh; Sun, 29 Oct 2023 23:54:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmc3BxaWeRXolEOQ+RLrvisnX7gtRdmRdlOUXTjezYX/9IO7fMXpYnS0deIPZ8RMjFPFqi X-Received: by 2002:a05:6a20:2584:b0:15f:16f5:858e with SMTP id k4-20020a056a20258400b0015f16f5858emr7903228pzd.58.1698648885547; Sun, 29 Oct 2023 23:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698648885; cv=none; d=google.com; s=arc-20160816; b=ED3VavkA5ttn79l5oHOmU3QHR190VWShkEhIIO9olQAdlzxXW71Kw5LSI1EFAfcf/S RaTVg3s6nZPjFtC2ZvQBs3E9zg6qCDMDdK1FcrDXF3jGP5XE3PNkIYY2nPCgPzdStPS9 txZ+L/lDsvTbHLKfnIGQeG8qv/vZmzZgfcyz4EXtqKoeWfw4B5dGwyZoqvXeJUeIfEa8 vfD9yL1KR3HPROcuKWNuMGdciDKwCOL0hejLH9YTD81qGdBT6dqnO1rFu9l74o1tq0OU arPeKNyggfp79MzlUWEXFj78fXwcr5YpJq5vc8YJCWJ085JVUQRDdLP+0dD0fzlhLM+W xsPw== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=k/plvhVyykkxJgC+LDzB7nrVde68eR6Wbay50l+w4Jo=; fh=+4gC4LmfQlCoD5nmRGefxNg/J20m6gJt8nwYJvoURRw=; b=mYqyvdtkI1PlctNr41Q+hIUedvWAF6c3Ukd14q38OtqiMmrwCpjh0S48tJxO6/84aN u1ILfFO7TEH5AZoFq6BwD2d3QfRFh2VHYIuOSNzHMCVBnjbiv5eAnwPjW853GGUjKz4J v65X4ewRV9f1xBkcvSkliSgEsvv1aoNRAVpE524DZKy8F0nvZ7UJSRGN4Axy8PLxIGid EKqOONDFW2iU4Adku42itPZh33t+gfw1wTqOXUdKCw3cgywTkYRdF2Uz8E+TQWFqpQbh slG1NG4fMCZAS4aA5se3YYYdA6OoACdvCe7H2ht1OTN7Q87AXEP14K1enYc5NqN8yRVI PbvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bv87x68n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id t21-20020a170902dcd500b001c9fe071f2esi4528559pll.128.2023.10.29.23.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 23:54:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bv87x68n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E35658096BA0; Sun, 29 Oct 2023 23:54:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231721AbjJ3GwA (ORCPT + 99 others); Mon, 30 Oct 2023 02:52:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231638AbjJ3Gv7 (ORCPT ); Mon, 30 Oct 2023 02:51:59 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62F29C0 for ; Sun, 29 Oct 2023 23:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698648669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k/plvhVyykkxJgC+LDzB7nrVde68eR6Wbay50l+w4Jo=; b=bv87x68nSZSyuT168scufqbFCBUtb7QmCDG1X5jfaYRs6t9iGQMYtVIoo8bS6VvxkNeuG7 r7gc82GZn9tyOGvsr0BMxWWfI9u2sSOaD1Z6QzE3zTsh+/8a2ucyoWESU+pFdY7TGreaJ2 et0lgpeUPKYEPtXB9FVYZzR8uaOuLD8= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-462-aH6aKh8YOXqnHhagq52rIQ-1; Mon, 30 Oct 2023 02:51:08 -0400 X-MC-Unique: aH6aKh8YOXqnHhagq52rIQ-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-66da680f422so54620476d6.3 for ; Sun, 29 Oct 2023 23:51:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698648667; x=1699253467; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=k/plvhVyykkxJgC+LDzB7nrVde68eR6Wbay50l+w4Jo=; b=haS651lpPw72uVHQJOBBlxPjXxSjcR923f4dMFIVk6I5mmd9+9w6G4MUwwtn05CaKM KNnMWqawtUCx/ZzcTEjMuKaNpQ4tE27aIkwutvp1mLJ/juor6I5S4yiHeYhzlot+hHQM fgZ0ukvHt6UM6Aec71pmSv8R6OwJ/MbD+qSdAmeY1vitFptRxXPx8V/VafXPJwEd9YC6 /coH0evSdMHGGgIGlD+6484Rr9TyBwX5nBVgyltO4S32p2S+etL/bfh5BQMZMiziIrX7 ZqE3XZol6N93O8SfSroeYuLh7JN+hQnUsVw5jL/3p2dRERbCqLWMductRGCrdYUoet37 1UJQ== X-Gm-Message-State: AOJu0Yxn/L2jtWPULVXeAJg3cUzqSB+wXfy1vZ/9ztTvJT2G2JZo3WMh L+p9PuCJ9h+t3VjlQV81IL9MrbLnatF/uXzg4vAhb/3bTIncySKU+feD7AGt47FcbQlPHC85b9/ VAwSZyLgQTwR6x6B+YKj/DBpp X-Received: by 2002:ad4:5c65:0:b0:656:3b4c:b98b with SMTP id i5-20020ad45c65000000b006563b4cb98bmr13663446qvh.11.1698648667670; Sun, 29 Oct 2023 23:51:07 -0700 (PDT) X-Received: by 2002:ad4:5c65:0:b0:656:3b4c:b98b with SMTP id i5-20020ad45c65000000b006563b4cb98bmr13663439qvh.11.1698648667424; Sun, 29 Oct 2023 23:51:07 -0700 (PDT) Received: from ?IPV6:2a01:e0a:280:24f0:3f78:514a:4f03:fdc0? ([2a01:e0a:280:24f0:3f78:514a:4f03:fdc0]) by smtp.gmail.com with ESMTPSA id x15-20020a0ceb8f000000b00670c15033aesm2179985qvo.144.2023.10.29.23.51.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Oct 2023 23:51:07 -0700 (PDT) Message-ID: <356dd79e-9079-4bbc-9b64-9468b6f7b6a7@redhat.com> Date: Mon, 30 Oct 2023 07:51:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v18 2/2] Documentation: add debugfs description for vfio Content-Language: en-US To: Longfang Liu , alex.williamson@redhat.com, jgg@nvidia.com, shameerali.kolothum.thodi@huawei.com, jonathan.cameron@huawei.com Cc: bcreeley@amd.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@openeuler.org References: <20231028075447.41939-1-liulongfang@huawei.com> <20231028075447.41939-3-liulongfang@huawei.com> From: =?UTF-8?Q?C=C3=A9dric_Le_Goater?= In-Reply-To: <20231028075447.41939-3-liulongfang@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 fry.vger.email 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 (fry.vger.email [0.0.0.0]); Sun, 29 Oct 2023 23:54:43 -0700 (PDT) On 10/28/23 09:54, Longfang Liu wrote: > 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 Should we have 2 patches instead ? Anyhow, Reviewed-by: Cédric Le Goater Thanks, C. > > 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..445e9f58f924 > --- /dev/null > +++ b/Documentation/ABI/testing/debugfs-vfio > @@ -0,0 +1,25 @@ > +What: /sys/kernel/debug/vfio > +Date: Oct 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: Oct 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: Oct 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 > diff --git a/MAINTAINERS b/MAINTAINERS > index b19995690904..a6be3b4219c7 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -22591,6 +22591,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