cputune XML:
* src/conf/domain_conf.h (New struct for vcputune and vcpupin,
declarations for new internal helper functions for cputune
support)
* src/conf/domain_conf.c (Update "virDomainDefParseXML" to parse,
and "declaration" to build cputune xml, implementations for
new
LXC driver doesn't support vcpu affinity yet, so just need
to modify it to support cpu shares.
* src/lxc/lxc_controller.c (Setup cpu shares for domain)
* src/lxc/lxc_driver.c (Update domain config when "lxcSetSchedulerParameters"
is invoked)
---
src/lxc/lxc_controller.c | 10 ++
src/l
Didn't test it, and not sure if it's the correct way to add cputune
xml for xend driver, and besides, seems "xm driver" and "xen hypervisor"
also support vcpu affinity, do we need to add support for them too?
Any suggestion on supporting cputune for xen is appreciated. :-)
---
src/xen/xend_intern
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.
* src/qemu/qemu_cgroup.c
* src/qemu/qemu_
* docs/schemas/domain.rng (New definition for cputune xml)
* docs/formatdomain.html.in (Docs for cputune xml)
---
docs/formatdomain.html.in | 21 +
docs/schemas/domain.rng | 32
2 files changed, 53 insertions(+), 0 deletions(-)
diff --git
---
tests/qemuxml2argvdata/qemuxml2argv-cputune.args |4 ++
tests/qemuxml2argvdata/qemuxml2argv-cputune.xml | 33 ++
tests/qemuxml2argvtest.c |1 +
tests/qemuxml2xmltest.c |1 +
4 files changed, 39 insertions(+), 0
These are pretty rough patches, something like a draft, I beleive
there must be many problems, please review it heavily, :-)
New XML:
2048
"shares" is to define the the proportional weighted cpu share
for the domain.
"vcpupin" is to define the cpu affinities of vcpus, it