> > 3. Why depend on location of vfio module in kernel tree?
> >    modprobe does the right thing and finds it.
> >
> >     VFIO_PATH="kernel/drivers/vfio/pci/vfio-pci.ko"
> >
> >     echo "Loading VFIO module"
> >     /sbin/lsmod | grep -s vfio_pci > /dev/null
> >     if [ $? -ne 0 ] ; then
> >             if [ -f /lib/modules/$(uname -r)/$VFIO_PATH ] ; then
> >                     sudo /sbin/modprobe vfio-pci
> >             fi
> >     fi
> >

Here I agree. Needs to be fixed.

Thanks,
Anatoly

Reply via email to