From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7E9E6A2EDB for ; Fri, 6 Sep 2019 11:59:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C65371F2DA; Fri, 6 Sep 2019 11:59:02 +0200 (CEST) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 7051D1F2D9 for ; Fri, 6 Sep 2019 11:59:01 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C6D6786662 for ; Fri, 6 Sep 2019 09:59:00 +0000 (UTC) Received: from dmarchan.remote.csb (ovpn-204-127.brq.redhat.com [10.40.204.127]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0FA4460BF1 for ; Fri, 6 Sep 2019 09:58:59 +0000 (UTC) From: David Marchand To: dev@dpdk.org Date: Fri, 6 Sep 2019 11:58:27 +0200 Message-Id: <1567763909-307-1-git-send-email-david.marchand@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 06 Sep 2019 09:59:00 +0000 (UTC) Subject: [dpdk-dev] [RFC PATCH 0/2] Using virtio ethdev ports as non-root X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" I managed to run testpmd as non-root with virtio ports after quite some tries. Sending a first RFC with the (not so big) changes that are required on the DPDK side. I will come with a little howto for the non-RFC series for people interested in this, since I had to align quite some stars to make it work. -- David Marchand David Marchand (2): bus/pci: check IO permissions for UIO only net/virtio: do not require IO permissions drivers/bus/pci/bsd/pci.c | 5 +++++ drivers/bus/pci/linux/pci.c | 10 ++++++++++ drivers/net/virtio/virtio_ethdev.c | 8 ++------ 3 files changed, 17 insertions(+), 6 deletions(-) -- 1.8.3.1