Don't mount /sys/bus/pci/ for sriov launcher pods
Now that we rely on administrator and device plugin to handle VFIO driver
registration, libvirt has no need to unbind network drivers for allocated VFs.
Because of that, this host path mount is no longer needed.
@@ -341,21 +341,6 @@ func (t *templateService) RenderLaunchManifest(vmi *v1.VirtualMachineInstance) (
})
if isSRIOVVmi(vmi) {
- // libvirt needs this volume to unbind the device from kernel
- // driver, and register it with vfio userspace driver
- volumeMounts = append(volumeMounts, k8sv1.VolumeMount{
- Name: "pci-bus",
- MountPath: "/sys/bus/pci/",
- })
- volumes = append(volumes, k8sv1.Volume{
- Name: "pci-bus",
- VolumeSource: k8sv1.VolumeSource{
- HostPath: &k8sv1.HostPathVolumeSource{
- Path: "/sys/bus/pci/",
- },
- },
- })
-
// libvirt needs this volume to determine iommu group assigned
// to the device
volumeMounts = append(volumeMounts, k8sv1.VolumeMount{
