From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: Running DPDK as an unprivileged user Date: Mon, 02 Jan 2017 15:32:08 +0100 Message-ID: <30911426.SrBqgP6jBN@xps13> References: <1483044080.11975.1.camel@intel.com> <20161229171453.57a4326a@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Stephen Hemminger To: "Walker, Benjamin" Return-path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 2E8D92B8B for ; Mon, 2 Jan 2017 15:32:10 +0100 (CET) Received: by mail-wm0-f54.google.com with SMTP id a197so366623690wmd.0 for ; Mon, 02 Jan 2017 06:32:10 -0800 (PST) In-Reply-To: <20161229171453.57a4326a@xeon-e3> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-12-29 17:14, Stephen Hemminger: > On Thu, 29 Dec 2016 20:41:21 +0000 > "Walker, Benjamin" wrote: > > My second question is whether the user should be allowed to > > mix uio and vfio usage simultaneously. For vfio, the > > physical addresses are really DMA addresses and are best > > when arbitrarily chosen to appear sequential relative to > > their virtual addresses. For uio, they are physical > > addresses and are not chosen at all. It seems that these two > > things are in conflict and that it will be difficult, ugly, > > and maybe impossible to resolve the simultaneous use of > > both. > > Unless application is running as privileged user (ie root), UIO > is not going to work. Therefore don't worry about mixed environment. Yes, mixing UIO and VFIO is possible only as root. However, what is the benefit of mixing them?