Skip to content

Using virtio ethdev ports as non-root

David Marchand dpdk-dev 3 versions – Applied

Status from this message: Applied, thanks for the reviews Maxime, Tiwei.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 3 repliesApplied
  2. v22 patches 1 replySuperseded
  3. v12 patches 3 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2bus/pci: check IO permissions for UIO onlydrivers/bus/pci/bsd/pci.c drivers/bus/pci/linux/pci.c drivers/bus/pci/linux/pci_uio.c+17 -01 reply
2/2net/virtio: do not require IO permissionsdrivers/net/virtio/virtio_ethdev.c+0 -51 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMaxime CoquelinTiwei Bie
1/2R-b
2/2R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [dpdk-dev] [PATCH v3 0/2] Using virtio ethdev ports as non-root

Here are two little changes to be able to run testpmd as non-root with virtio ports in a guest.
This requires a functional vIOMMU (the main pain parts being writing a Q35 machine configuration in qemu for x86 guests).

No major change since the RFC, I just did not find the time to describe the full setup (Q35 x86 machine config + permissions on /dev/hugepages and /dev/vfio in the guest + ulimit -l unlimited).

Signature · 14 lines
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        | 6 ++++++
 drivers/bus/pci/linux/pci_uio.c    | 6 ++++++
 drivers/net/virtio/virtio_ethdev.c | 5 -----
 4 files changed, 17 insertions(+), 5 deletions(-)

-- 
1.8.3.1