Re: [PATCH 2/2] virsh: man: Document asynchronous behaviour of detach-device-alias

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/18/19 8:19 AM, Peter Krempa wrote:
This command is fully async. Note that users can use virsh event to be
notified of the guest actually removing the device.

Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
  tools/virsh.pod | 5 ++++-
  1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tools/virsh.pod b/tools/virsh.pod
index 39ff8cd7c9..2889e17531 100644
--- a/tools/virsh.pod
+++ b/tools/virsh.pod
@@ -3290,7 +3290,10 @@ I<--persistent>.
  =item B<detach-device-alias> I<domain> I<alias>
  [[[I<--live>] [I<--config>] | [I<--current>]]]]

-Detach a device with given I<alias> from the I<domain>.
+Detach a device with given I<alias> from the I<domain>. This command returns
+successfully after the unplug request was sent to the hypervisor. The actual
+removal of the device is notified asynchronously via libvirt events
+(see virsh event).

This is not enterly true. Under the hood both detach-device and detach-device-alias call qemuDomainDetachDeviceLive() which takes virDomainDeviceDefPtr and which calls qemuDomainWaitForDeviceRemoval() after talking to the monitor.

I'm failing to see why this note is here for detach-device-alias and not for plain detach-device.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux