forked from pool/libvirt
41 lines
1.6 KiB
Diff
41 lines
1.6 KiB
Diff
|
commit 99f50208c9ff49bbb8b864407be02522976c1b4f
|
||
|
Author: Chunyan Liu <cyliu@suse.com>
|
||
|
Date: Thu May 8 14:44:05 2014 +0800
|
||
|
|
||
|
update documentation of <interface type='hostdev'>
|
||
|
|
||
|
<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>
|
||
|
|
||
|
Index: libvirt-1.2.4/docs/formatdomain.html.in
|
||
|
===================================================================
|
||
|
--- libvirt-1.2.4.orig/docs/formatdomain.html.in
|
||
|
+++ libvirt-1.2.4/docs/formatdomain.html.in
|
||
|
@@ -3507,10 +3507,22 @@
|
||
|
guest instead of <interface type='hostdev'/>.
|
||
|
</p>
|
||
|
|
||
|
+ <p>
|
||
|
+ Similar to the functionality of a standard <hostdev> 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>
|
||
|
...
|
||
|
<devices>
|
||
|
- <interface type='hostdev'>
|
||
|
+ <interface type='hostdev' managed='yes'>
|
||
|
<driver name='vfio'/>
|
||
|
<source>
|
||
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
|