|
|
0a7476 |
From 88a1a0d9cde76b79a59e6177a1dcdf036ec4cea0 Mon Sep 17 00:00:00 2001
|
|
|
0a7476 |
Message-Id: <88a1a0d9cde76b79a59e6177a1dcdf036ec4cea0@dist-git>
|
|
|
0a7476 |
From: Peter Krempa <pkrempa@redhat.com>
|
|
|
0a7476 |
Date: Wed, 3 Apr 2019 16:35:44 +0200
|
|
|
0a7476 |
Subject: [PATCH] virsh: man: Document quirks of device-detach and friends
|
|
|
0a7476 |
|
|
|
0a7476 |
Mention that successful return does not equal to device being detached
|
|
|
0a7476 |
similarly as we do at the API level.
|
|
|
0a7476 |
|
|
|
0a7476 |
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
|
|
|
0a7476 |
Reviewed-by: Erik Skultety <eskultet@redhat.com>
|
|
|
0a7476 |
(cherry picked from commit e95a66349a751694cf173efa1581712b6fb99851)
|
|
|
0a7476 |
|
|
|
0a7476 |
https: //bugzilla.redhat.com/show_bug.cgi?id=1688961
|
|
|
0a7476 |
Message-Id: <7d04a65a6b2dbb7f4ca69d128838437b3e05c5b7.1554302031.git.pkrempa@redhat.com>
|
|
|
0a7476 |
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
|
|
|
0a7476 |
---
|
|
|
0a7476 |
tools/virsh.pod | 14 ++++++++++++++
|
|
|
0a7476 |
1 file changed, 14 insertions(+)
|
|
|
0a7476 |
|
|
|
0a7476 |
diff --git a/tools/virsh.pod b/tools/virsh.pod
|
|
|
0a7476 |
index 00cbee19b6..5321f6806a 100644
|
|
|
0a7476 |
--- a/tools/virsh.pod
|
|
|
0a7476 |
+++ b/tools/virsh.pod
|
|
|
0a7476 |
@@ -3188,6 +3188,16 @@ or attempting to detach a device that is not present in the domain XML,
|
|
|
0a7476 |
but shares some specific attributes with one that is present,
|
|
|
0a7476 |
may lead to unexpected results.
|
|
|
0a7476 |
|
|
|
0a7476 |
+B<Quirk>: Device unplug is asynchronous in most cases and requires guest
|
|
|
0a7476 |
+cooperation. This means that it's up to the discretion of the guest to disallow
|
|
|
0a7476 |
+or delay the unplug arbitrarily. As the libvirt API used in this command was
|
|
|
0a7476 |
+designed as synchronous it returns success after some timeout even if the device
|
|
|
0a7476 |
+was not unplugged yet to allow further interactions with the domain e.g. if the
|
|
|
0a7476 |
+guest is unresponsive. Callers which need to make sure that the
|
|
|
0a7476 |
+device was unplugged can use libvirt events (see virsh event) to be notified
|
|
|
0a7476 |
+when the device is removed. Note that the event may arrive before the command
|
|
|
0a7476 |
+returns.
|
|
|
0a7476 |
+
|
|
|
0a7476 |
If I<--live> is specified, affect a running domain.
|
|
|
0a7476 |
If I<--config> is specified, affect the next startup of a persistent domain.
|
|
|
0a7476 |
If I<--current> is specified, affect the current domain state.
|
|
|
0a7476 |
@@ -3235,6 +3245,8 @@ I<--persistent>.
|
|
|
0a7476 |
If B<--print-xml> is specified, then the XML which would be used to detach the
|
|
|
0a7476 |
disk is printed instead.
|
|
|
0a7476 |
|
|
|
0a7476 |
+Please see documentation for B<detach-device> for known quirks.
|
|
|
0a7476 |
+
|
|
|
0a7476 |
=item B<detach-interface> I<domain> I<type> [I<--mac mac>]
|
|
|
0a7476 |
[[[I<--live>] [I<--config>] | [I<--current>]] | [I<--persistent>]]
|
|
|
0a7476 |
|
|
|
0a7476 |
@@ -3257,6 +3269,8 @@ an offline domain, and like I<--live> I<--config> for a running domain.
|
|
|
0a7476 |
Note that older versions of virsh used I<--config> as an alias for
|
|
|
0a7476 |
I<--persistent>.
|
|
|
0a7476 |
|
|
|
0a7476 |
+Please see documentation for B<detach-device> for known quirks.
|
|
|
0a7476 |
+
|
|
|
0a7476 |
=item B<update-device> I<domain> I<file> [I<--force>]
|
|
|
0a7476 |
[[[I<--live>] [I<--config>] | [I<--current>]] | [I<--persistent>]]
|
|
|
0a7476 |
|
|
|
0a7476 |
--
|
|
|
0a7476 |
2.21.0
|
|
|
0a7476 |
|