Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5966617ybl; Tue, 27 Aug 2019 12:18:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZqGVOI6XBNcTGoqE4Zmn/AU0Vvpn/ZSSRpCMx5qfXAba7PD0wR57K18y1QK2thxPSid4d X-Received: by 2002:a17:902:8543:: with SMTP id d3mr492814plo.80.1566933516691; Tue, 27 Aug 2019 12:18:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566933516; cv=none; d=google.com; s=arc-20160816; b=UwHqSZNTyqL0v7B6OH+1Lg8B8DXzmWSp1d0QvNEsZOiJShMfmoMEQpmjcpCW53++9C G877MJznv1292ftGSdMa7UAW5UKEM+Rf/6diUkL+yp8aHAMt68OJke31Mt1Xs1ZGr6MZ RIyqKAjrA70Qv06wilS3LsuOGqegPswznxhsipSOCojHtiq2qelSjGn/jl3aHwOfLiSz kB2ENcLF0r1T870QSeTjnOY5TjC7YP8auMBYXoXnrmV8UrZpICbRutIoOI49Rwm5siMo pyO/HdqG4NaO7lQAXfBxaoASl7FonqS/qf35QdJprH40elFUTm3QjJCoG7M6WhpqG1bV 7KdQ== 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=aMfcS5AG6jJbi1Rj8tugX78cz5NaWnus0SxILW72QcnNN9yZwZrKaDCGQrjMdF7S+I krasKwXJBsza+4jLNDiF3VwNrIzwJqQfi7S6gESvDRh8pdbuMveeyN97vkVFk/+Rm/ZJ YHtMzTaZvb1r2boEGlafjXCVz60vu+Rd+55f+zYbg9eHmHvEiwpJCnW9cKVn8xgP9Rd9 b2VHaOwMQcppGmf/n4NVqEm/TwvAbgGetTGW+NwZMAn22LkWxSDSwXl4r9xx1i/VVVT+ dm1aicjwZ9VDu+Vj+ROn6Gc3N4pc3EgyfTdrdVbVp0GXX1PrJLcxazPJ/L1eVMNTGqlj Tjsg== 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 h9si149942pgp.435.2019.08.27.12.18.21; Tue, 27 Aug 2019 12:18:36 -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 S1731162AbfH0TRS (ORCPT + 99 others); Tue, 27 Aug 2019 15:17:18 -0400 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:38902 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731077AbfH0TRN (ORCPT ); Tue, 27 Aug 2019 15:17:13 -0400 Received: from Internal Mail-Server by MTLPINE1 (envelope-from parav@mellanox.com) with ESMTPS (AES256-SHA encrypted); 27 Aug 2019 22:17:07 +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 x7RJGuGu026842; Tue, 27 Aug 2019 22:17:05 +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 v1 4/5] mdev: Update sysfs documentation Date: Tue, 27 Aug 2019 14:16:53 -0500 Message-Id: <20190827191654.41161-5-parav@mellanox.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190827191654.41161-1-parav@mellanox.com> References: <20190826204119.54386-1-parav@mellanox.com> <20190827191654.41161-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