]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: formatdomaincaps: Describe optional XML changes
authorCole Robinson <crobinso@redhat.com>
Wed, 6 Mar 2019 23:25:16 +0000 (18:25 -0500)
committerCole Robinson <crobinso@redhat.com>
Mon, 18 Mar 2019 14:51:02 +0000 (10:51 -0400)
Acked-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
docs/formatdomaincaps.html.in

index ba48daab2d2f4207334f4f1e03232ab13c8e13f3..2583f9bead05aae72e1b7dfd3b477d98d591d9b1 100644 (file)
     management application to choose an appropriate mode for a pass-through
     host device as well as which adapter to utilize.</p>
 
+    <p>Some XML elements may be entirely omitted from the domaincapabilities
+    XML, depending on what the libvirt driver has filled in. Applications
+    should only act on what is explicitly reported in the domaincapabilities
+    XML. For example, if &lt;disk supported='yes'/&gt; is present, you can safely
+    assume the driver supports &lt;disk&gt; devices. If &lt;disk supported='no'/&gt; is
+    present, you can safely assume the driver does NOT support &lt;disk&gt;
+    devices. If the &lt;disk&gt; block is omitted entirely, the driver is not
+    indicating one way or the other whether it supports &lt;disk&gt; devices, and
+    applications should not interpret the missing block to mean any thing in
+    particular.</p>
+
     <h2><a id="elements">Element and attribute overview</a></h2>
 
     <p> A new query interface was added to the virConnect API's to retrieve the