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 4DA72423D9 for ; Sat, 14 Jan 2023 23:17:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0D37F40156; Sat, 14 Jan 2023 23:17:24 +0100 (CET) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) by mails.dpdk.org (Postfix) with ESMTP id E468840042 for ; Sat, 14 Jan 2023 23:17:22 +0100 (CET) Received: by mail-lf1-f52.google.com with SMTP id m6so37887645lfj.11 for ; Sat, 14 Jan 2023 14:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=JxlaqZMwB/YEP7NJWRoouMC3iaAFPo6+I8WUwHY8VzQ=; b=njqPVPYkm3NUUX2sp04p3gIVIgw5jVrwomRaDjOjPiyc4WRIA/bEiepnEqLJ8TH06F DoLhxTeVk5xISyR85rY63b92EgynnIF6nwC+mYI5XzVCIeyOeXhF/tfkQ1H/c7chmS5z wTktpb7v63rwElRXKcyRf7PiEupyPwDkTPWt2Lc0Mu4Ek0KDkGYFW6wuNaPTzaqb82z4 3dPgAmjyDAclm8YAPSAMhClGKqHGFyoROfqeVmxNDM0D2TaS/aTWzZ0YYn2lkDha9sUm 2DSfhkstOZEw59zLgMi2ETWXghtZ8lQcLlQOpxdaTrA4h8Ph2ldiF6H3mFY/IlH6Ulgd omKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JxlaqZMwB/YEP7NJWRoouMC3iaAFPo6+I8WUwHY8VzQ=; b=5SoSW//BKN65ov7vUVOZ/8CIm9aVtbPo3dspAhXm9DNiw549/VD9grp3mnoBg37tm0 +fQ55CaC7JD/AR9zx9UqDcB38ZRRIqlk1yz0WB9GYP20QR8BGVcGSC69Yc/vyesUZpl3 eaOwnSfgucOrLZdvCOpKnRw6Dm58SDJD3QO1C02BZlMwgtcZ2cjd6IqxVGkY+z0/uDG4 ZFCp3xrE1AVY6mqGOp6d3JnpNg5Pw7h7mMOU4F447v9JYocigllSNjpZL+9+Ep2GQ9oP gbDCy/9FkZJGvySsa5r2hEYUa0i0gEcUKGQnQhEogpDCETb2QGanrvtrFf21IdqWJR+f i9XQ== X-Gm-Message-State: AFqh2kpLDPNRJrjLTyhU/ZjBwZsnxWfvhSXd0TzZCXcOqgfF6nIDadhY V1bt96/NQzldPvRZ+IRNsM92ZKUyN7JRK8NwY/vegGFJDkQ= X-Google-Smtp-Source: AMrXdXuVXrYNSFpkpXAbZHWKU9fKpX8AP2gDWsAuMeHzjBw0855y7+6eTjQ6E3sV+ipeaWlc958fq8zR6zTYexAr6zE= X-Received: by 2002:a19:6b10:0:b0:4d2:9e50:f764 with SMTP id d16-20020a196b10000000b004d29e50f764mr444731lfa.137.1673734641997; Sat, 14 Jan 2023 14:17:21 -0800 (PST) MIME-Version: 1.0 From: Isaac Boukris Date: Sun, 15 Jan 2023 00:17:10 +0200 Message-ID: Subject: Running testpmd as non-root user with uio_pci_generic To: users@dpdk.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Hi, I tried to run testpmd as a non-root user with uio_pci_generic (i.e. not vfio-pci) on a vmxnet3 interface by setting the 'cap_ipc_lock,cap_sys_admin' capabilities as according to the doc at: https://doc.dpdk.org/guides-21.11/linux_gsg/enable_func.html But that didn't work and I was still getting the documented error: EAL: rte_mem_virt2phy(): cannot open /proc/self/pagemap: Permission denied I dug a little and found that I had to add the 'cap_dac_override' as well and then it worked, the hint was at (which also includes a small demo program): https://bugs.centos.org/view.php?id=17176 I thought it was worth sharing as I have seen it being asked a couple of times. Cheers, Isaac