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

virsh_detach_device_alias: enhancement for pci #6162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dzhengfy
Copy link
Contributor

@dzhengfy dzhengfy commented Jan 26, 2025

Currently the cases are skipped in most time because below error:

error: Failed to attach device from pci.xml
error: internal error: Non-endpoint PCI devices cannot be assigned to guests

This is because the incorrect pci device is used to attach to the vm. This fix is an enhancement to increase possiblities of finding the suitable pci device.

Signed-off-by: Dan Zheng [email protected]

@dzhengfy
Copy link
Contributor Author

Before fix:

Skipped
rhel.virsh.detach_device_alias.live.hostdev.pci
error: internal error: Non-endpoint PCI devices cannot be assigned to guests

After fix: on same aarch64 host
(1/1) type_specific.io-github-autotest-libvirt.virsh.detach_device_alias.current.hostdev.pci: PASS (61.48 s)
(1/1) type_specific.io-github-autotest-libvirt.virsh.detach_device_alias.live.hostdev.pci: PASS (60.71 s)

Currently the cases are skipped in most time because below error:

error: Failed to attach device from pci.xml
error: internal error: Non-endpoint PCI devices cannot be assigned to guests

This is because the incorrect pci device is used to attach to the vm.
This fix is an enhancement to increase possiblities of finding the suitable pci device.

Signed-off-by: Dan Zheng <[email protected]>
@dzhengfy
Copy link
Contributor Author

Tested on x86_64 libvirt-10.10.0:
(1/1) type_specific.io-github-autotest-libvirt.virsh.detach_device_alias.current.hostdev.pci: PASS (55.34 s)

@harihare
Copy link
Contributor

LGTM

Copy link
Contributor

@harihare harihare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

2 participants