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.
Thanks.
~Peeyush Gupta
From: Daniel P. Berrange <berrange@redhat.com> To: Peeyush Gupta <gpeeyush@ymail.com> Cc: "libvirt-users@redhat.com"
<libvirt-users@redhat.com> Sent: Wednesday, 24 July 2013 4:35 PM Subject: Re: [libvirt-users] API to set cpuset.cpu_exclusive flag
On Wed, Jul 24, 2013 at 06:59:29PM +0800, Peeyush Gupta wrote: > Hi all, > > I have been trying to set cpu_exclusive flag. Now I can do it > using "echo". I want to know is there any other way (an API) > to set this flag? Is it possible to set this flag using API?
There's no API in libvirt for setting this, and I don't really see the point in this cgroup setting at all. It doesn't offer any critical functionality that you can't achieve by just explicitly configuring cgroups to not overlap.