Bug 1457610
Summary: | libvirt should give a nicer error message when intremap='split' in iommu device | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Jingjing Shao <jishao> |
Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
Status: | CLOSED ERRATA | QA Contact: | Jingjing Shao <jishao> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.4 | CC: | dyuan, jtomko, rbalakri, xuzhang, yalzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-3.8.0-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-10 10:46:43 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
Jingjing Shao
2017-06-01 02:55:23 UTC
Pushed upstream as: commit 90cd99a42e1afabc57f70a0e1e17e27f986ae04f Author: Ján Tomko <jtomko> CommitDate: 2017-09-11 14:56:07 +0200 conf: validate IOMMU interrupt remapping setting This option requires: <ioapic driver='qemu'/> Report an error in case someone tries to combine it with different ioapic setting. Setting 'eim' on without enabling 'intremap' does not make sense. https://bugzilla.redhat.com/show_bug.cgi?id=1457610 git describe: v3.7.0-40-g90cd99a42 Hi Ján, With libvirt-3.8.0-1.el7.x86_64, I found something wrong when I add the xml as below to guest no matter add <ioapic driver='qemu'/> or not. <iommu model='intel'> <driver intremap='on' caching='on'/> </iommu> # virsh edit q35-js error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng Extra element devices in interleave Element domain failed to validate content But with xml as below , the output are as expected. <iommu model='intel'> <driver intremap='on'/> </iommu> and <iommu model='intel'> <driver intremap='on' eim='on'/> </iommu>are as expected. (1) with <ioapic driver='qemu'/> , the xml as below can be edit and start successfully. (2) Without <ioapic driver='qemu'/>, the guest will output as below # virsh edit q35-js error: XML error: IOMMU interrupt remapping requires split I/O APIC (ioapic driver='qemu') Failed. Try again? [y,n,i,f,?]: The attribute name is 'caching_mode' Thanks‘s Ján' reply so soon and so sorry that I made a mistake. Add the xml as below to guest xml. <iommu model='intel'> <driver intremap='on' caching_mode='on'/> </iommu> (1) with <ioapic driver='qemu'/> , the guest can be edit and start successfully. (2) without <ioapic driver='qemu'/>, the guest get the output as below. # virsh edit q35-js error: XML error: IOMMU interrupt remapping requires split I/O APIC (ioapic driver='qemu') Failed. Try again? [y,n,i,f,?]: So with the comment 5 and comment 7, I change the status to verified 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, 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/RHEA-2018:0704 |