Hi Stephen,

> >
> >  #
> > +# Unloads VFIO modules.
> > +#
> > +remove_vfio_module()
> > +{
> > +   echo "Unloading any existing VFIO module"
> > +   /sbin/lsmod | grep -s vfio > /dev/null
> > +   if [ $? -eq 0 ] ; then
> > +           sudo /sbin/rmmod vfio-pci
> > +           sudo /sbin/rmmod vfio_iommu_type1
> > +           sudo /sbin/rmmod vfio
> > +   fi
> > +}
> > +
> 
> Won't this break if KVM is using vfio and running DPDK application as well.

Yes, just as if you would try to unload igb_uio while DPDK apps are running. 
Presumably, the user isn't going to try that just as he's not going to try that 
with igb_uio. So I see no issue here.

Best regards,
Anatoly Burakov
DPDK SW Engineer

--------------------------------------------------------------
Intel Shannon Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
Business address: Dromore House, East Park, Shannon, Co. Clare



Reply via email to