mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: Mark missing optional USB devices in domain XML
When startupPolicy set for a USB devices allows such device to be missing, there was no way this could be detected from domain XML. With this patch, libvirt emits a new missing='yes' attribute for such devices when active domain XML is generated.
This commit is contained in:
@@ -1654,6 +1654,14 @@
|
||||
</optional>
|
||||
<interleave>
|
||||
<element name="source">
|
||||
<optional>
|
||||
<attribute name="missing">
|
||||
<choice>
|
||||
<value>yes</value>
|
||||
<value>no</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
<choice>
|
||||
<group>
|
||||
<ref name="usbproduct"/>
|
||||
|
||||
Reference in New Issue
Block a user