Repository navigation
pci_passthrough: add negative_split_iommu_group variant! - #430
Open
Anushree-Mathur wants to merge 1 commit into
Open
Anushree-Mathur wants to merge 1 commit into
Anushree-Mathur wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.