summaryrefslogtreecommitdiff
path: root/docs/formatdomain.rst
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2023-02-23 13:48:35 +0100
committerPeter Krempa <pkrempa@redhat.com>2023-05-02 14:32:47 +0200
commit83eee66f811cc81c632738b84129f006035a88d0 (patch)
treebcf359c8104f2966a79181e5cd2e6936cdc12ad8 /docs/formatdomain.rst
parent6df1d137dd3adfa507d17cf3bf8d11459ab443d0 (diff)
downloadlibvirt-83eee66f811cc81c632738b84129f006035a88d0.tar.gz
conf: Store the iothread 'poll' settings in the XML
Currently we allow configuring the 'poll-max-ns', 'poll-grow', and 'poll-shrink' parameters of qemu iothreads only during runtime and they are not persisted. Add XML machinery to persist them. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
Diffstat (limited to 'docs/formatdomain.rst')
-rw-r--r--docs/formatdomain.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
index 3b9251547e..99e0a4241c 100644
--- a/docs/formatdomain.rst
+++ b/docs/formatdomain.rst
@@ -740,7 +740,9 @@ host/guest with many LUNs. :since:`Since 1.2.8 (QEMU only)`
<iothread id="2"/>
<iothread id="4"/>
<iothread id="6"/>
- <iothread id="8" thread_pool_min="2" thread_pool_max="32"/>
+ <iothread id="8" thread_pool_min="2" thread_pool_max="32">
+ <poll max='123' grow='456' shrink='789'/>
+ </iothread>
</iothreadids>
<defaultiothread thread_pool_min="8" thread_pool_max="16"/>
...
@@ -766,6 +768,13 @@ host/guest with many LUNs. :since:`Since 1.2.8 (QEMU only)`
``thread_pool_max`` which allow setting lower and upper boundary for number
of worker threads for given IOThread. While the former can be value of zero,
the latter can't. :since:`Since 8.5.0`
+ :since:`Since 9.4.0` an optional sub-element ``poll`` with can be used to
+ override the hypervisor-default interval of polling for the iothread before
+ it switches back to events. The optional attribute ``max`` sets the maximum
+ time polling should be used in nanoseconds. Setting ``max`` to ``0`` disables
+ polling. Attributes ``grow`` and ``shrink`` override (or disable when set to
+ ``0`` the default steps for increasing/decreasing the polling interval if
+ the set interval is deemed insufficient or extensive.
``defaultiothread``
This element represents the default event loop within hypervisor, where I/O
requests from devices not assigned to a specific IOThread are processed.