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@xxxxxxxxxx> > --- > +++ 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
Attachment:
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list