Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

source/pci: add iommu_group/type attribute #705

Merged

Commits on Jan 11, 2022

  1. source/pci: add iommu_group/type attribute

    Add "iommu_group/type" to the list of PCI device attributes that are
    discovered. The value is the raw value from sysfs (i.e DMA, DMA-FQ or
    identity).
    
    No built-in (automatic) labels are generated based on this, but, the
    attribute is available for custom label rules to use. Examples of custom
    rules:
    
      - name: "iommu enabled rule"
        labels:
          iommu.enabled: "true"
        matchFeatures:
          - feature: pci.device
            matchExpressions:
              "iommu_group/type": {op: NotIn, value: ["unknown"]}
    
      - name: "iommu passthrough rule"
        labels:
          iommu.passthrough: "true"
        matchFeatures:
          - feature: pci.device
            matchExpressions:
              "iommu_group/type": {op: In, value: ["identity"]}
    marquiz committed Jan 11, 2022
    Configuration menu
    Copy the full SHA
    152f353 View commit details
    Browse the repository at this point in the history