]> xenbits.xensource.com Git - libvirt.git/commitdiff
update documentation of <interface type='hostdev'>
authorChunyan Liu <cyliu@suse.com>
Thu, 8 May 2014 06:44:05 +0000 (14:44 +0800)
committerJim Fehlig <jfehlig@suse.com>
Mon, 12 May 2014 20:52:50 +0000 (14:52 -0600)
<interface type='hostdev' managed='yes'> is supported, but
nowhere mentions 'managed' in <interface type='hostdev'> syntax.
Update documentation to cover it.

Signed-off-by: Chunyan Liu <cyliu@suse.com>
docs/formatdomain.html.in

index 4f19473c9c29df5e2730a576205b7474fd499015..76b2bc295064565fbc4766983580f2de3a4dac0c 100644 (file)
       guest instead of &lt;interface type='hostdev'/&gt;.
     </p>
 
+    <p>
+      Similar to the functionality of a standard &lt;hostdev&gt; device,
+      when <code>managed</code> is "yes", it is detached from the host
+      before being passed on to the guest, and reattached to the host
+      after the guest exits. If <code>managed</code> is omitted or "no",
+      the user is responsible to call <code>virNodeDeviceDettach</code>
+      (or <code>virsh nodedev-dettach</code>) before starting the guest
+      or hot-plugging the device, and <code>virNodeDeviceReAttach</code>
+      (or <code>virsh nodedev-reattach</code>) after hot-unplug or
+      stopping the guest.
+    </p>
+
 <pre>
   ...
   &lt;devices&gt;
-    &lt;interface type='hostdev'&gt;
+    &lt;interface type='hostdev' managed='yes'&gt;
       &lt;driver name='vfio'/&gt;
       &lt;source&gt;
         &lt;address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/&gt;