k8snetworkplumbingwg / ib-sriov-cni

InfiniBand SR-IOV CNI
Other
40 stars 27 forks source link

Is VFIO supported? #53

Open peng-isi opened 3 years ago

peng-isi commented 3 years ago

Hi, I tried to use QEMU VFIO to assign the VFs of the IB interface to a VM in KubeVirt. But the VFIO resource cannot be detected or advertised in kubevirt. I am not sure if the ib-sriov-cni-deamonset supports VFIO resource? any comment and suggestion are appreciated!

moshe010 commented 3 years ago

we don't support VFIO today. How do you do it today for ethernet using sriov-cni?

peng-isi commented 3 years ago

I first defined a new CRD, i.e., IB in Kubevirt and then modified the Kubevirt source code to hardwire the VFIO of the IB to the VM (not perfect, but it is good enough for my case). Right now, the VM can access the VFIO of the IB interface.