[libvirt] [PATCH v2 2/3] docs, schema, conf: Add support for setting scheduler parameters of guest threads
Eric Blake
eblake at redhat.com
Wed Feb 11 17:37:46 UTC 2015
On 02/10/2015 08:35 AM, Martin Kletzander wrote:
> In order for QEMU vCPU (and other) threads to run with RT scheduler,
> libvirt needs to take care of that so QEMU doesn't have to run privileged.
>
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1178986
>
Might be nice to also show a sample XML usage in the commit message.
> Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
> ---
> +++ b/docs/formatdomain.html.in
> @@ -550,6 +550,8 @@
> <quota>-1</quota>
> <emulator_period>1000000</emulator_period>
> <emulator_quota>-1</emulator_quota>
> + <vcpusched vcpus='0-4,^3' scheduler='fifo' priority='1'/>
> + <iothreadsched iothreads='2' scheduler='batch'/>
> </cputune>
> ...
> </domain>
> @@ -652,6 +654,20 @@
> <span class="since">Only QEMU driver support since 0.10.0</span>
> </dd>
>
> + <dt><code>vcpusched</code> and <code>iothreadsched</code></dt>
> + <dd>
> + The optional <code>vcpusched</code> elements specifie the scheduler
> + (values <code>batch</code>, <code>idle</code>, <code>fifo</code>,
> + <code>rr</code>) for particular vCPU/IOThread threads (based on
> + <code>vcpus</code> and <code>iothreads</code>, leaving out
> + <code>vcpus</code>/<code>iothreads</code> sets the default).
> + For real-time schedulers (<code>fifo</code>, <code>rr</code>),
> + priority must be specified as well (and is ignored for
> + non-real-time ones). The value range for the priority depends
> + on the host kernel (usually 1-99).
> + <span class="since">Since 1.2.12</span>
1.2.13, actually.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150211/d167c620/attachment-0001.sig>
More information about the libvir-list
mailing list