Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2148117ybl; Thu, 29 Aug 2019 04:20:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNT4p90WnRCd1080c+RK3Z4S4MACr1zQZF9gqzNfDCp2sg/NFyaGSUvA13ozP3mOfQ6iQT X-Received: by 2002:a62:e806:: with SMTP id c6mr10883248pfi.132.1567077659145; Thu, 29 Aug 2019 04:20:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567077659; cv=none; d=google.com; s=arc-20160816; b=u9kwWVkoRsSBF5O5OBZ7mUTWZWK5kikLSmWzoo9VphafLFx4LLrF4bSTSudrNXwKNA YkyMrXIJwcZ2oWqQ4uoHT9YNEwwkEo0l+0nKXGoLtp3IytEO8YnpBZXKxx0Npo3jzH7x fQoAJojQbZQRuVss4hn6hkaVuRjawZJevIgIH4VV5Mphr07Oh32esYgiX3r3Ipmpk89g wMgWDFWBU+6+E89bHQ6Dqn9st3Yq39Ltxm2y+IphV98Z8jsydzuohVtAGIE5GPPjULZa aaimec79W6k+UkDCaPIiEUdMMfc581/LXX8bMGQr+qnAID5UpiStCwItztsRw/NpqwY6 RlxQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fM4xSbQ/HUhEx1AC7cdBFxfGLhz8KfzIGvR/IfhxMdk=; b=VMODwmCk0OMn188HPjI9nb62eknlybIYWc2ZJR5WhwpkQUhFr5xnhaEFyQY4HGA+FV P9laEuuALn0STq/Vo/vpDG2tGohD06Gvx6azrZeG5qLRJBi0xVGbNILuccPt5CSTU+g+ usgH0/JVtMReoh8cLSK6eFLD5cK0WUm3/9RTrQwK92hcf5liF57tEsI3OhnPTtrbEqh0 ziFFuXQvMbMxLmkYb2Z+vDW/+qsHet5/UFqELeg8WXJEFpZjrIHgNfgSTSQdvMBg9swz NvmxsQ/lAYFaNH15Ax8hKQMrXrj1dFL+guQhUvsh43NFcZkp3mmMwFsSWXiqY+Gn/pTM B3EQ== 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=mellanox.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g136si2452102pfb.60.2019.08.29.04.20.43; Thu, 29 Aug 2019 04:20:59 -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=mellanox.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728297AbfH2LT3 (ORCPT + 99 others); Thu, 29 Aug 2019 07:19:29 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:43801 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728156AbfH2LTZ (ORCPT ); Thu, 29 Aug 2019 07:19:25 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from parav@mellanox.com) with ESMTPS (AES256-SHA encrypted); 29 Aug 2019 14:19:22 +0300 Received: from sw-mtx-036.mtx.labs.mlnx (sw-mtx-036.mtx.labs.mlnx [10.12.150.149]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x7TBJ8v6020002; Thu, 29 Aug 2019 14:19:20 +0300 From: Parav Pandit To: alex.williamson@redhat.com, jiri@mellanox.com, kwankhede@nvidia.com, cohuck@redhat.com, davem@davemloft.net Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Parav Pandit Subject: [PATCH v2 5/6] mdev: Update sysfs documentation Date: Thu, 29 Aug 2019 06:19:03 -0500 Message-Id: <20190829111904.16042-6-parav@mellanox.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190829111904.16042-1-parav@mellanox.com> References: <20190826204119.54386-1-parav@mellanox.com> <20190829111904.16042-1-parav@mellanox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Updated documentation for optional read only sysfs 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] * 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. + Mediated device Hot plug ------------------------ -- 2.19.2