Bug 967231
| Summary: | RFE: capabilities: provide info about host VT-D/AMD-Vi IOMMU support | ||
|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Cole Robinson <crobinso> |
| Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | laine, mprivozn, rbalakri |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | LibvirtFirstBug | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-06-10 07:28:05 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Cole Robinson
2013-05-25 20:36:16 UTC
Reporting iommu_group is in git nowadays, but not the rest that I can see. The rules for PCI vs PCIe and MSI vs MSI-x seem pretty subtle, and I'm thinking now that apps shouldn't be in the business of trying to predict those bits, so dropping from the request. But VT-D/AMD-Vi availability reporting would still be useful *** Bug 885400 has been marked as a duplicate of this bug. *** Adding some additional info for LibvirtFirstBug: To implement this you'll need to: * extend the capabilities XML to add a new element like <iommu present="on"/> in the <capabilities><host> block. The XML handling is in src/conf/capabilities.c * add a function to src/nodeinfo.c for probing the host to determine if IOMMU is present. you can get the IOMMU probing logic from tools/virt-host-validate-common.c:virHostValidateIOMMU ; either copy it or find a way to share it between the two. * wire it all up so that at least the qemu HV driver will fill in the info in capabilities XML See this commit for an example of extending capabilities XML with new data: https://github.com/libvirt/libvirt/commit/02129b7c0e581898f03468e0bfb5472dc9903339 Patches are now merged upstream:
commit 6549c3a4d10bd895a7ac4283af933951dde4c86d
Author: Filip Alac <filipalac>
AuthorDate: Fri Jun 1 10:16:00 2018 +0200
Commit: Michal Privoznik <mprivozn>
CommitDate: Tue Jun 5 09:11:29 2018 +0200
docs: news: Explain iommu_support improvement
Signed-off-by: Filip Alac <filipalac>
commit dc34e78e21d64b8b43e627c4d2e8646ca7bfb5e5
Author: Filip Alac <filipalac>
AuthorDate: Fri Jun 1 10:15:59 2018 +0200
Commit: Michal Privoznik <mprivozn>
CommitDate: Tue Jun 5 08:33:13 2018 +0200
capabilities: Extend capabilities with iommu_support
Signed-off-by: Filip Alac <filipalac>
Signed-off-by: Michal Privoznik <mprivozn>
commit 1597e155b2ea94d8cf27b23cab116febbf86cf82
Author: Filip Alac <filipalac>
AuthorDate: Fri Jun 1 10:15:58 2018 +0200
Commit: Michal Privoznik <mprivozn>
CommitDate: Tue Jun 5 08:33:13 2018 +0200
qemu: hostdev: Move parts of qemuHostdevHostSupportsPassthroughVFIO() into separate function
Signed-off-by: Filip Alac <filipalac>
Signed-off-by: Michal Privoznik <mprivozn>
v4.4.0-86-g6549c3a4d1
|