mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-07-31 14:07:16 +00:00
schema: make pci slot and function optional
The pcie-switch-downstream-port and pcie-root-port controllers have only a single slot, numbered 0, and the greate majority of all guest PCI devices are plugged into function 0 of whatever slot they're using. The parser makes these optional, setting them to 0 when not specified, and it's logical for the schema to also make them optional.
This commit is contained in:
parent
e7db227810
commit
51156bcff3
@ -75,12 +75,16 @@
|
|||||||
<attribute name="bus">
|
<attribute name="bus">
|
||||||
<ref name="pciBus"/>
|
<ref name="pciBus"/>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="slot">
|
<optional>
|
||||||
<ref name="pciSlot"/>
|
<attribute name="slot">
|
||||||
</attribute>
|
<ref name="pciSlot"/>
|
||||||
<attribute name="function">
|
</attribute>
|
||||||
<ref name="pciFunc"/>
|
</optional>
|
||||||
</attribute>
|
<optional>
|
||||||
|
<attribute name="function">
|
||||||
|
<ref name="pciFunc"/>
|
||||||
|
</attribute>
|
||||||
|
</optional>
|
||||||
<optional>
|
<optional>
|
||||||
<attribute name="multifunction">
|
<attribute name="multifunction">
|
||||||
<ref name="virOnOff"/>
|
<ref name="virOnOff"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user