Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5157474ybe; Tue, 17 Sep 2019 03:41:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwf5xdQ0gWDstndqWUA6QTiRhOkxGpOyZRXAiOZlTEZ61KU5zeyy5yK4XkQq8fA77HWffE+ X-Received: by 2002:a17:906:a2d6:: with SMTP id by22mr4027133ejb.133.1568716879800; Tue, 17 Sep 2019 03:41:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568716879; cv=none; d=google.com; s=arc-20160816; b=ewy1CmNAIqGDw+lHT+5QZN2aoAH/65onAKJOpDn7l7I28JoO6D7VdmOgpbiig9ZSGD 2Rxmz82bQAk4TXZ8jjcMwEEurXXl776KKv+Jm7l9zBa4bRRu3KnuUQXGy9q2H/it3f5/ VqvFZp81SN6paSo8FEZOv+SqyhFQYCJ1Yi5cNnom9mKCGHg8vtmoiGhHN7MBQ12c3YfA gWpIJKwExpgsDBW4C/vppT/XYHUDvoebiJl6O7TZLPmxE/GXxOSrZPGv3/obgyW2we3a ZC0Yt66qDMq6c16bOrjs6f5/OTUJZ/nV5h0vT7tyiawvXQe3x6Rki0FyoUBCdiK+6ShD XVTQ== 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=WxF/6NZEcTI2BJipgmKFVp1EEEVqSvBNkwJ3xVyjjv0=; b=kj0we0TKEDeJ4v9DcNO0T2NV+PRic2nctGEBg3UtFZsvobCTBH8K7jQNwoluXv1gl3 Clnt+2PnVCfj0RprdCKvgHGJSU+wDaVjd2t44P9HvjgoGMaM/sQEtmKbrR3MU72w61Ge 1GcFyJnGNUS+UptUcQg0w9zNRZvTB8IPyTkeFvZeU/353BfzBR3is0stNodvfJ6NTy9Y /qP+2onKNIteJhewxZVvye8MF3f8/mLyq6F0S+qLJsMIlNhG+4MrdYb5Wc4e/xOIUpwx dBeQ4m+/rahgGSocouDzsF9KM0kakSaq/Ps8iQll4N5TCm7/jNfOin4E1ixy2hTOS79J Etug== 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 y44si1010258edb.251.2019.09.17.03.40.56; Tue, 17 Sep 2019 03:41:19 -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 S1726974AbfIQKI6 (ORCPT + 99 others); Tue, 17 Sep 2019 06:08:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35542 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbfIQKI6 (ORCPT ); Tue, 17 Sep 2019 06:08:58 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 23A6110DCC84; Tue, 17 Sep 2019 10:08:58 +0000 (UTC) Received: from gondolin (dhcp-192-230.str.redhat.com [10.33.192.230]) by smtp.corp.redhat.com (Postfix) with ESMTP id 962E760126; Tue, 17 Sep 2019 10:08:54 +0000 (UTC) Date: Tue, 17 Sep 2019 12:08:52 +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 v3 3/5] mdev: Expose mdev alias in sysfs tree Message-ID: <20190917120852.0f6ec4cc.cohuck@redhat.com> In-Reply-To: <20190902042436.23294-4-parav@mellanox.com> References: <20190826204119.54386-1-parav@mellanox.com> <20190902042436.23294-1-parav@mellanox.com> <20190902042436.23294-4-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.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mx1.redhat.com [10.5.110.64]); Tue, 17 Sep 2019 10:08:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 1 Sep 2019 23:24:34 -0500 Parav Pandit wrote: > Expose the optional alias for an mdev device as a sysfs attribute. > This way, userspace tools such as udev may make use of the alias, for > example to create a netdevice name for the mdev. > > Updated documentation for optional read only sysfs attribute. > > Signed-off-by: Parav Pandit > > --- > Changelog: > v2->v3: > - Merged sysfs documentation patch with sysfs addition > - Added more description for alias return value > v0->v1: > - Addressed comments from Cornelia Huck > - Updated commit description > --- > Documentation/driver-api/vfio-mediated-device.rst | 9 +++++++++ > drivers/vfio/mdev/mdev_sysfs.c | 13 +++++++++++++ > 2 files changed, 22 insertions(+) > (...) > @@ -281,6 +282,14 @@ Example:: > > # echo 1 > /sys/bus/mdev/devices/$mdev_UUID/remove > > +* alias (read only, optional) > +Whenever a parent requested to generate an alias, each mdev device of such s/such/that/ > +parent is assigned unique alias by the mdev core. s/unique alias/a unique alias/ > +This file shows the alias of the mdev device. > + > +Reading file either returns valid alias when assigned or returns error code s/file/this file/ s/valid alias/a valid alias/ s/error code/the error code/ > +-EOPNOTSUPP when unsupported. > + > Mediated device Hot plug > ------------------------ With the nits above fixed, Reviewed-by: Cornelia Huck