0

I have been trying to load the vfio-pci module into the kernel using the "modprobe vfio-pci" command with no success.

I am a newbie when it comes to low level programming, so I suspect I might be doing something wrong.

What I tried:

  1. sudo modprobe vfio-pci // nothing shown in lsmod about vfio

  2. modprobe vfio enable_unsafe_noiommu_mode=1 // still, nothing shown in lsmod

  3. Added iommu=on as kernel parameter // i am not sure if this is more of a dpdk matter though

Why am I doing this?

I am trying to use DPDK, so I need to load that module as shown here.

Environment:

I have tried this inside virtual machines built in VirtualBox, VMWare, Qemu. It did not work in any of them. The host is Ubuntu 20.04 and the Guest is Ubuntu 20.04 as well.

CPU information: print-screen.

edit1: forgot to mention, both modinfo vfio-pci and modinfo vfio display information about those modules, so i guess they are not missing.

Mihai
  • 100
  • 13
  • 1
    "sudo modprobe vfio-pci // nothing shown in lsmod about vfio" - It seems that functionality of the module is **built-in** into your kernel. In that case, `modprobe` does nothing but returns success. As for `lsmod`, it lists only "real" modules and doesn't print built-in ones. – Tsyvarev Mar 05 '21 at 11:11
  • Oh it makes sense, thank you so much. I was getting an error when trying something with dpdk and I thought I wasn't loading the module correctly. Should I delete this question? I am not sure how this works. – Mihai Mar 05 '21 at 11:19

0 Answers0