commit 99f50208c9ff49bbb8b864407be02522976c1b4f
Author: Chunyan Liu
+ Similar to the functionality of a standard <hostdev> device,
+ when managed
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 managed
is omitted or "no",
+ the user is responsible to call virNodeDeviceDettach
+ (or virsh nodedev-dettach
) before starting the guest
+ or hot-plugging the device, and virNodeDeviceReAttach
+ (or virsh nodedev-reattach
) after hot-unplug or
+ stopping the guest.
+
... <devices> - <interface type='hostdev'> + <interface type='hostdev' managed='yes'> <driver name='vfio'/> <source> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>