From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A3FBBA0032; Fri, 24 Jun 2022 15:20:04 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 487014069D; Fri, 24 Jun 2022 15:20:04 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2075.outbound.protection.outlook.com [40.107.92.75]) by mails.dpdk.org (Postfix) with ESMTP id E6D57400EF for ; Fri, 24 Jun 2022 15:20:02 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WHcDW/5huQccOgj/xTSK+jqW+TPzOcFwAloHfSCZyf00grRED8t1VgvpLDX+O3ytcy103F70hiNxKzZPqQWeCoPPGkZoYofNKgtihxbBwLciXFhLMUAOIa+2XJyHsMjHU2WklWk/XX+95cpTJHQ38h/QuqCtV6dn4NurGULT3g/ZibNniGMhKj7xTxf5WdAFn2YJRxHDs7IUkFwL9WVr7ZXGPUn/F5wQivSbOmujdqtdXINVD2pTpEGc2Z7wMZ/tXr7/4KCzxp3lrRcxHeAzJo1VdEJKU+HIjuLFjpZMkeAK+O/qucJhlGeNUbwVtbs3pIY90Z0n8/7pu2VFv8rqOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kKk23WxqTJPbZqEyC31gZ+hukyBwaF/3sfEkl2KptOM=; b=UBi81q3DoV8eOY3WYZCsbAL4Ro/f3lBBmoo4cb4n0pNsMkyiyzruT9zg8v/LAYoEasctIxOW3RbmrU3twDBJMc1t33WHNtNHudNs3rrt/GsGkxSlMHEi8pOjDYeaKs9lpOAeNaoPirtCnQynfMcR1RIdpWnF6sV7RtQ2ysQfems3vuCtryu1Bgch4OvfV45ulq+VufsR2b2oj6iDtMUUTvAgh8JE/qKC3FheJ8rj7pA1vkZD6dASvxt542/w6b6m3QHZD8tWAjU/DwV0dmZ8YnytOW7pVF/Ks8VZ2qKgRqumE2tjp0KGbdiZW0ZJKZEz/jtEPtsiaUjnXciHvcqp9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kKk23WxqTJPbZqEyC31gZ+hukyBwaF/3sfEkl2KptOM=; b=H3axF96ubKyXl6gtxaaH3IhOVhHFAAjjdzmUYKTIZW8ZF82agh+rcETEgmGwzkle210Vr4gZqluNsinZOw9/4CvLXISpn6NIraFiy9r24ApD91x18JzZMUZM6zRwI6z6JCKvj4VRKSq5M+AviokkaGrt1ulaUq9J383JSOH4+QnUJWRQkHul+w+DQXrT78A2wRojfIrN2rTNCk4nDscyjfQhhwD9CdxuSaTiglAYsIsFsIPN5VvB9cj9C7GwVPkrW3KKNU3o4sqGVdVK3uNSsncD8Ry7R5Nw8E574P7SaTg1/YxowKlfeA7t4EE0byKps6ARJ6x3/oOpFeFwmVoqJA== Received: from DM6PR13CA0068.namprd13.prod.outlook.com (2603:10b6:5:134::45) by DM6PR12MB2969.namprd12.prod.outlook.com (2603:10b6:5:115::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.18; Fri, 24 Jun 2022 13:20:01 +0000 Received: from DM6NAM11FT054.eop-nam11.prod.protection.outlook.com (2603:10b6:5:134:cafe::6f) by DM6PR13CA0068.outlook.office365.com (2603:10b6:5:134::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.7 via Frontend Transport; Fri, 24 Jun 2022 13:20:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.238) by DM6NAM11FT054.mail.protection.outlook.com (10.13.173.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5373.15 via Frontend Transport; Fri, 24 Jun 2022 13:20:00 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Fri, 24 Jun 2022 13:20:00 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Fri, 24 Jun 2022 06:19:59 -0700 Received: from nvidia.com (10.127.8.11) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.26 via Frontend Transport; Fri, 24 Jun 2022 06:19:58 -0700 From: Dmitry Kozlyuk To: Subject: [PATCH v4 0/5] Improve documentation for running as non-root Date: Fri, 24 Jun 2022 16:19:51 +0300 Message-ID: <20220624131956.75160-1-dkozlyuk@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220624084817.63145-1-dkozlyuk@nvidia.com> References: <20220624084817.63145-1-dkozlyuk@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 95aa697d-be22-4576-38cb-08da55e43e04 X-MS-TrafficTypeDiagnostic: DM6PR12MB2969:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TJUXZQhkB2I6jN8/JCaAsiYlxwNCZ8dd1HyEN0EITm9k6oFsuiGGpXOx+E/BuMIOo4Asiu0bTsUa/YG3hebAi5GNjqgy1NGlvWSx6NdjyPeKJYkj2mEv4BX5cByYEZTzbh5vJ9Wkm+yiR18NGlISGQ2vrdYFJicPrCkzwOZOyutkvqoyy+Xz4O8R7xNxhWDZkOMLqll+2DMssctSZvHZzQpWIpUM5XrdEBUE7eGjYg67yo4eVrLnt2V2Lyf3S3OrZr8c1o5RJZOPmDqbRqwUhfWYB7C+lr4EyXllcEJ9iv9smJ07xGsEXRCFnEnINqNopaeDo6RUwjBwQH432tSuFzn0XV7ZJUWAK3mob4vAzEnKTkPxJDzbdJedKtzc165Mmc/MpPb4XDOYJ+csGKuSOfV3YlWmvGiYfjJN3o5KV7U885SKzYVg7edrNQwqkttke5XU0gCrwU9lc9ohp/tE94zq9hy+58BSLYhrD8NARKG5GuktFpgQNWcsrFQTRC560IBc90owuwZ4pXWyaaieb4jJ01YpWqLWG59DPWErdy1bP0MGKU9HKMKbbj5DRaxdvePIHsWLWJZnwbwwMosVwqZ9OQlHWfPNW81mF/jPgGV1JRBGyxQBJrawbYahevS78PSoVtPVwoAYrkVJ32SGDb8DemguYnkq+JQf9mgXD89a/06hx86ktjOoWPDNQNNuc/IyuMRfsYlLL0GYbO/Obh0lr6WLMZnnIz5D9mykXHALzNsx4W6fJOZJtbv0tacye21lzFc/Wq7j4+EmJwwZkHwTgbF1LyDfY/OmHCmd0T2FCXs49LRV6tBma7X5mleo3vAu7tR6uOQG1jlamPmOSg== X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(346002)(136003)(39860400002)(376002)(396003)(40470700004)(46966006)(36840700001)(82740400003)(356005)(70206006)(36756003)(47076005)(55016003)(40480700001)(6286002)(7696005)(81166007)(26005)(2906002)(5660300002)(2616005)(40460700003)(1076003)(186003)(478600001)(8936002)(8676002)(6916009)(426003)(41300700001)(86362001)(36860700001)(336012)(82310400005)(70586007)(316002)(6666004)(83380400001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2022 13:20:00.6465 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 95aa697d-be22-4576-38cb-08da55e43e04 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT054.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB2969 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org v4: Same, - Split dpdk-hugepages.py option --owner/-o into --user/-U and --group/-G. - Move vfio-pci note to the beginning of section. v3: Address comments by Bruce Richardson: - Remove the section for using UIO with older kernels. - Move the note about legacy virtio to virtio doc. - Advertise vfio-pci usage to avoid physical addresses (still unclear whether and when it requires IPC_LOCK). - Fix typo. v2: Address comments by Stephen Hemminger: - Use hugetlbfs options instead of chown. - Suggest using OS or container runtime where possible. - Improve wording. Add SYS_RAWIO requirement for legacy virtio. Explain SYS_RAWIO requirement for MLX5 PMD. Dmitry Kozlyuk (5): usertools: add option to select hugetlbfs directory usertools: add options to change mount point owner doc: give specific instructions for running as non-root doc: update instructions for running as non-root for MLX5 doc: add note about running virtio-legacy as non-root doc/guides/linux_gsg/enable_func.rst | 90 +++++++++++++------ doc/guides/nics/virtio.rst | 3 + doc/guides/platform/mlx5.rst | 31 ++++--- .../prog_guide/env_abstraction_layer.rst | 2 + usertools/dpdk-hugepages.py | 26 +++++- 5 files changed, 109 insertions(+), 43 deletions(-) -- 2.25.1