Skip to content

pci_passthrough: add negative_split_iommu_group variant! - #430

Open
Anushree-Mathur wants to merge 1 commit into
lop-devops:masterfrom
Anushree-Mathur:negative_split_iommu_master
Open

Anushree-Mathur wants to merge 1 commit into
lop-devops:masterfrom
Anushree-Mathur:negative_split_iommu_master

Conversation

@Anushree-Mathur

Copy link
Copy Markdown
Contributor

The tp-libvirt libvirt_pci_passthrough test gained a negative_split_iommu_group variant. It assigns only one device of a multi-function IOMMU group to the guest while the remaining members of the group stay bound to their host driver. VFIO requires all devices of an IOMMU group to be owned by vfio-pci, so the guest must fail to start, and the test passes only if the failure contains the expected error.

Add a negative_split_iommu_group entry to pci_passthrough.cfg so the new test is picked up when this suite is run. It selects libvirt_pci_passthrough.negative_split_iommu_group and declares the parameters the test reads:

split_pci PCI address of ONE device of an IOMMU group
whose other members are not bound to
vfio-pci. This is system specific, so it is
an "ENTER.YOUR.PCI.LABEL" placeholder with
an example, like the other PCI labels in
this file.
negative_split_expected_err error expected when the guest fails to
start ("is not viable")

The variant is placed before guest_remove, since guest_remove deletes the guest that the test needs.

Depends on the tp-libvirt change for the negative_split_iommu_group test in libvirt_pci_passthrough.

The tp-libvirt libvirt_pci_passthrough test gained a
negative_split_iommu_group variant. It assigns only one device of a
multi-function IOMMU group to the guest while the remaining members of
the group stay bound to their host driver. VFIO requires all devices of
an IOMMU group to be owned by vfio-pci, so the guest must fail to start,
and the test passes only if the failure contains the expected error.

Add a negative_split_iommu_group entry to pci_passthrough.cfg so the new
test is picked up when this suite is run. It selects
libvirt_pci_passthrough.negative_split_iommu_group and declares the
parameters the test reads:

  split_pci                    PCI address of ONE device of an IOMMU group
                               whose other members are not bound to
                               vfio-pci. This is system specific, so it is
                               an "ENTER.YOUR.PCI.LABEL" placeholder with
                               an example, like the other PCI labels in
                               this file.
  negative_split_expected_err  error expected when the guest fails to
                               start ("is not viable")

The variant is placed before guest_remove, since guest_remove deletes
the guest that the test needs.

Depends on the tp-libvirt change for the negative_split_iommu_group
test in libvirt_pci_passthrough.

Signed-off-by: Anushree Mathur <anushree.mathur@linux.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant