mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
nodedev: make iommuGroup optional for mdevs
When parsing a nodedev xml file, the iommuGroup element should be optional. This element should be read-only and is determined by the device driver. While this is a change to existing behavior, it doesn't break backwards-compatibility because it makes the parser less strict. Signed-off-by: Jonathon Jongsma <jjongsma@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
committed by
Erik Skultety
parent
ea33200488
commit
9baffe90b5
@@ -390,8 +390,9 @@
|
||||
<dt><code>iommuGroup</code></dt>
|
||||
<dd>
|
||||
This element supports a single attribute <code>number</code>
|
||||
which holds the IOMMU group number the mediated device belongs
|
||||
to.
|
||||
which holds the IOMMU group number to which the mediated device
|
||||
belongs. This is a read-only field that is reported by the
|
||||
device driver.
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
|
||||
@@ -629,11 +629,13 @@
|
||||
<data type='string'/>
|
||||
</attribute>
|
||||
</element>
|
||||
<element name='iommuGroup'>
|
||||
<attribute name='number'>
|
||||
<ref name='unsignedInt'/>
|
||||
</attribute>
|
||||
</element>
|
||||
<optional>
|
||||
<element name='iommuGroup'>
|
||||
<attribute name='number'>
|
||||
<ref name='unsignedInt'/>
|
||||
</attribute>
|
||||
</element>
|
||||
</optional>
|
||||
</define>
|
||||
|
||||
<define name='capccwdev'>
|
||||
|
||||
Reference in New Issue
Block a user