Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp689659ybl; Fri, 30 Aug 2019 05:50:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYBlZ7ZsQeqvIxEFygST9ig5fbfvgxgzmTsBhdIETrKntqzO+U8PHg0p2hVQvGAA3QlXTC X-Received: by 2002:a17:902:2f43:: with SMTP id s61mr15237775plb.22.1567169440029; Fri, 30 Aug 2019 05:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567169440; cv=none; d=google.com; s=arc-20160816; b=ZILxbeK9Gkum5Z+H08+1NXuS8m8AVlzpSaTlesQ80MQnUihVppXCjylMbCdPDI1Y35 P0iBiJRcs2k+IpYgJj3VXuyQiC2UW8Dyx9eVSv7rrbfYdC3yCJ5x0aVc0Xkwmij/NwA6 kh0y05+UYqNoAMbZ8frXssXO94epanw+UQ+3jTXdnIHlDnZLn5OYtX38KTvFRLM2657E C/aOcnO9Fh+NrwfMQ8bPK+H+WVzUAnEG6k1C1iNc1R1Rir/ErYf7UX7oWV3St2GLZK0r 0eHL5L1v6j6DsgOMLH2DH0NwUqS4sLxmIm0kZT4JJXVz4LDUg3ygYQ2cTJ65D1oTYBma h11Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=I3TUZ66I3KiWOJd/umy5eCbHNPszSaSKrc1P1S0p5D4=; b=mMJWX+HI+PiPvpZHEjIUitZKy/8E5OFlKw6wi7m5leTdc9ZhSm3J32diEfyFHIjUgG 8D6ngxKuuMfzRWsQvDIIYwmuUJ6jE00664aYiN6G+gWKWlb38aaPAon+wW1K11dmzjsH /18eFSFoIhP5bddWnrwF9Dnbw3ieBF+ySOZ0HNSCvEQWGwHCySXGiyRST6pnrhtQcybs oKFFga3dibrOp1LwG0NeYPcNwiZoZZy7ifY8oZWqiqz5iKa7E9BgU8vh6aplc5oj0L9X vwDrSww8Pc4fCk67h5RgtNU+M5cJzf2vSrqb8T/IVWZL0hK7GwbMtTqWdyjS0ApWiPPF FEMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c9si1606120pjr.0.2019.08.30.05.50.24; Fri, 30 Aug 2019 05:50:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728181AbfH3Mti (ORCPT + 99 others); Fri, 30 Aug 2019 08:49:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47574 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbfH3Mti (ORCPT ); Fri, 30 Aug 2019 08:49:38 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B562869EE1; Fri, 30 Aug 2019 12:49:37 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4C8C76092D; Fri, 30 Aug 2019 12:49:29 +0000 (UTC) Date: Fri, 30 Aug 2019 14:49:27 +0200 From: Cornelia Huck To: Parav Pandit Cc: alex.williamson@redhat.com, jiri@mellanox.com, kwankhede@nvidia.com, davem@davemloft.net, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v2 5/6] mdev: Update sysfs documentation Message-ID: <20190830144927.7961193e.cohuck@redhat.com> In-Reply-To: <20190829111904.16042-6-parav@mellanox.com> References: <20190826204119.54386-1-parav@mellanox.com> <20190829111904.16042-1-parav@mellanox.com> <20190829111904.16042-6-parav@mellanox.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 30 Aug 2019 12:49:37 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Aug 2019 06:19:03 -0500 Parav Pandit wrote: > Updated documentation for optional read only sysfs attribute. I'd probably merge this into the patch introducing the attribute. > > Signed-off-by: Parav Pandit > --- > Documentation/driver-api/vfio-mediated-device.rst | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/Documentation/driver-api/vfio-mediated-device.rst b/Documentation/driver-api/vfio-mediated-device.rst > index 25eb7d5b834b..0ab03d3f5629 100644 > --- a/Documentation/driver-api/vfio-mediated-device.rst > +++ b/Documentation/driver-api/vfio-mediated-device.rst > @@ -270,6 +270,7 @@ Directories and Files Under the sysfs for Each mdev Device > |--- remove > |--- mdev_type {link to its type} > |--- vendor-specific-attributes [optional] > + |--- alias [optional] "optional" implies "not always present" to me, not "might return a read error if not available". Don't know if there's a better way to tag this? Or make it really optional? :) > > * remove (write only) > > @@ -281,6 +282,10 @@ Example:: > > # echo 1 > /sys/bus/mdev/devices/$mdev_UUID/remove > > +* alias (read only) > +Whenever a parent requested to generate an alias, each mdev is assigned a unique > +alias by the mdev core. This file shows the alias of the mdev device. It's not really the parent, but the vendor driver requesting this, right? Also, "each mdev" is a bit ambiguous, as this is only true for the subset of mdevs created via that driver. Lastly, if we stick with the "returns an error if not implemented" approach, that should also be mentioned here. > + > Mediated device Hot plug > ------------------------ >