<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I guess it could be helpful. I mean I wont have to do it through virsh/echo/explicitly everytime. If I have an API for cgroup settings, I can do it easily through my code.</span></div><div></div><div> </div><div>Thanks.</div><div><font class="Apple-style-span" color="#9E8FA9">~Peeyush Gupta</font><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Daniel P. Berrange <berrange@redhat.com><br> <b><span style="font-weight: bold;">To:</span></b> Peeyush Gupta <gpeeyush@ymail.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "libvirt-users@redhat.com"
 <libvirt-users@redhat.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, 24 July 2013 4:35 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [libvirt-users] API to set cpuset.cpu_exclusive flag<br> </font> </div> <div class="y_msg_container"><br>On Wed, Jul 24, 2013 at 06:59:29PM +0800, Peeyush Gupta wrote:<br>> Hi all,<br>> <br>> I have been trying to set cpu_exclusive flag. Now I can do it<br>> using "echo". I want to know is there any other way (an API)<br>> to set this flag? Is it possible to set this flag using API?<br><br>There's no API in libvirt for setting this, and I don't really see the<br>point in this cgroup setting at all. It doesn't offer any critical<br>functionality that you can't achieve by just explicitly configuring<br>cgroups to not overlap.<br><br>Daniel<br>-- <br>|: <a href="http://berrange.com/" target="_blank">http://berrange.com </a>     -o-    <a
 href="http://www.flickr.com/photos/dberrange/" target="_blank">http://www.flickr.com/photos/dberrange/ </a>:|<br>|: <a href="http://libvirt.org/" target="_blank">http://libvirt.org </a>             -o-             <a href="http://virt-manager.org/" target="_blank">http://virt-manager.org </a>:|<br>|: <a href="http://autobuild.org/" target="_blank">http://autobuild.org </a>      -o-         <a href="http://search.cpan.org/~danberr/" target="_blank">http://search.cpan.org/~danberr/ </a>:|<br>|: <a href="http://entangle-photo.org/" target="_blank">http://entangle-photo.org </a>      -o-       <a href="http://live.gnome.org/gtk-vnc" target="_blank">http://live.gnome.org/gtk-vnc </a>:|<br><br><br></div> </div> </div>  </div></body></html>