[libvirt] [PATCH 0/3] lxc: Implement emulator pin APIs to set/get cpuset

Wang Rui moon.wangrui at huawei.com
Fri Oct 10 05:58:37 UTC 2014


Ping?

On 2014/9/4 15:52, Wang Rui wrote:
> We can specify cpuset for a container defined with the xml
> like <vcpu placement='static' cpuset='0-3'> to achieve cpu
> isolation. It works when container is started. But there
> is no implements we can use to either change or get cpuset.
> 
> The following patches implement the lxc driver methods for
> virDomainPinEmulator and virDomainGetEmulatorPinInfo. Also
> support container startup with emulator affinity info in xml.
> 
> After these patches, we can set and get libvirt_lxc cpuset.
> 
> Yue Wenyuan (3):
>   lxc: Implement pin emulator for container startup
>   lxc: Implement emulator pin API in lxc driver
>   lxc: Implement geting emulator pin info API in lxc driver
> 
>  src/lxc/lxc_cgroup.c     |  88 ++++++++++++++++++++
>  src/lxc/lxc_cgroup.h     |   7 ++
>  src/lxc/lxc_controller.c |   4 +
>  src/lxc/lxc_driver.c     | 206 +++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 305 insertions(+)
> 





More information about the libvir-list mailing list