In order to enable the usage of InfiniBand SR-IOV VFs in KubeVirt VMs, the validation webhook constraints should be adjusted. Currently, KubeVirt users cannot pass-through InfiniBand VFs because the webhook blocks the following configuration:
---
apiVersion: sriovnetwork.openshift.io/v1
kind: SriovNetworkNodePolicy
metadata:
name: ib-vfio-nic-1
spec:
deviceType: vfio-pci
linkType: IB
nicSelector:
pfNames: ["ibs4f0#0-9"]
nodeSelector:
kubernetes.io/hostname: xxx.bigcompany.com
numVfs: 16
priority: 99
resourceName: ib_vfio_nic_1
The configuration above is rejected with the following error message:
"'deviceType: vfio-pci' conflicts with 'isRdma: true'; Set 'deviceType' to (string)'netdevice' Or Set 'isRdma' to (bool)'false'"