Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-59580

Add a note to Configuring PCI passthrough

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • CNV Documentation
    • Quality / Stability / Reliability
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      https://docs.redhat.com/en/documentation/openshift_container_platform/4.17/html-single/virtualization/index#virt-configuring-pci-passthrough

      There should be a note or requirement stating that for vfio-pci to allocate a PCI device, no other kernel driver should be managing that device. One option is to blacklist the specific kernel module, but this will make all devices handled by that module unavailable.

      Here an example machine config, to blacklist a network drive enic:

      apiVersion: machineconfiguration.openshift.io/v1
      kind: MachineConfig
      metadata:
        labels:
          machineconfiguration.openshift.io/role: worker
        name: 100-blacklist-enic
      spec:
        config:
          ignition:
            version: 3.4.0
          storage:
            files:
              - contents:
                  compression: ""
                  source: data:,blacklist%20enic%0A
                mode: 420
                overwrite: true
                path: /etc/modprobe.d/blacklist-enic.conf
        kernelArguments:
          - enic.blacklist=1
          - rd.driver.blacklist=enic

       

       

              ctomasko Catherine Tomasko
              rbohne Robert Bohne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: