summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLaine Stump <laine@laine.org>2016-03-22 11:38:53 -0400
committerLaine Stump <laine@laine.org>2016-04-14 14:00:33 -0400
commit51156bcff371b2622465a0de269872f7779295cf (patch)
treec47dc8cd4e2ddd98d318256bc3ee266dc0b31554 /docs
parente7db22781071a39668276a395fb547c0dd90875d (diff)
downloadlibvirt-51156bcff371b2622465a0de269872f7779295cf.tar.gz
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.
Diffstat (limited to 'docs')
-rw-r--r--docs/schemas/basictypes.rng16
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/schemas/basictypes.rng b/docs/schemas/basictypes.rng
index a83063afcc..084d4033e7 100644
--- a/docs/schemas/basictypes.rng
+++ b/docs/schemas/basictypes.rng
@@ -75,12 +75,16 @@
<attribute name="bus">
<ref name="pciBus"/>
</attribute>
- <attribute name="slot">
- <ref name="pciSlot"/>
- </attribute>
- <attribute name="function">
- <ref name="pciFunc"/>
- </attribute>
+ <optional>
+ <attribute name="slot">
+ <ref name="pciSlot"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="function">
+ <ref name="pciFunc"/>
+ </attribute>
+ </optional>
<optional>
<attribute name="multifunction">
<ref name="virOnOff"/>