[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



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(+)

-- 
1.7.12.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]