Bug 2108483
Summary: | Add alias support for virtio-iommu | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Han Han <hhan> |
Component: | libvirt | Assignee: | Andrea Bolognani <abologna> |
libvirt sub component: | General | QA Contact: | yalzhang <yalzhang> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | low | ||
Priority: | low | CC: | abologna, dzheng, hzhao, jdenemar, jinl, lmen, ly2850002, pkrempa, virt-maint, xuzhang, yalzhang, yicui |
Version: | 9.1 | Keywords: | Triaged |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-8.7.0-1.el9 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-05-09 07:26:34 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: | 8.6.0 |
Embargoed: |
Description
Han Han
2022-07-19 07:47:24 UTC
try with intel_iommu can also hit this issue steps to reproduce: same with the above Description just change the model from "virtio" to "intel" <iommu model="intel"> get the same error message: Extra element devices in interleave Element domain failed to validate content Patches posted upstream. https://listman.redhat.com/archives/libvir-list/2022-July/233042.html Patches merged upstream. commit 510540961417288a24d0870f0226f8255420c463 Author: Andrea Bolognani <abologna> Date: Thu Jul 21 11:14:21 2022 +0200 qemu: Add IOMMU device alias to command line Note that we can only do this for intel-iommu and virtio-iommu, which are configured using -device; smmuv3 is configured using a machine type property, so there's no room on the command line for an alias in that case. https://bugzilla.redhat.com/show_bug.cgi?id=2108483 Signed-off-by: Andrea Bolognani <abologna> Reviewed-by: Michal Privoznik <mprivozn> v8.5.0-172-g5105409614 Test on libvirt-8.7.0-1.el9.x86_64, the result is as expected, intel iommu also works fine. 1. start vm with a virtio iommu device 2. # virsh dumpxml rhel --xpath //iommu <iommu model="virtio"> <alias name="iommu0"/> <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/> </iommu> 3. # virsh dumpxml rhel|virt-xml-validate - - validates 4. Try with customized alias: # virsh dumpxml rhel --xpath //iommu <iommu model="virtio"> <alias name="ua-b52d2352-5650-4546-9a22-9d685cf6ce23"/> <address type="pci" domain="0x0000" bus="0x00" slot="0x04" function="0x0"/> </iommu> # virsh start rhel Domain 'rhel' started # virsh dumpxml rhel|virt-xml-validate - - validates Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (libvirt bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2171 |