]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
cputune: Support cputune for qemu driver
authorOsier Yang <jyang@redhat.com>
Tue, 29 Mar 2011 13:41:25 +0000 (21:41 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 29 Mar 2011 14:13:46 +0000 (22:13 +0800)
commit1cc4d0259c05fa795b5872711245cfc7f251220f
treeb3911de4adbb8e36792a168e7884ffc27c0d423a
parentb8853925faccdecd59655142b61bdcd00716e03a
cputune: Support cputune for qemu driver

When domain startup, setting cpu affinity and cpu shares according
to the cputune xml specified in domain xml.

Modify "qemudDomainPinVcpu" to update domain config for vcpupin,
and modify "qemuSetSchedulerParameters" to update domain config
for cpu shares.

v1 - v2:
   * Use "VIR_ALLOC_N" instead of "VIR_ALLOC_VAR"
   * But keep raising error when it fails on adding vcpupin xml
     entry, as I still don't have a better idea yet.
src/qemu/qemu_cgroup.c
src/qemu/qemu_driver.c
src/qemu/qemu_process.c