[libvirt] [PATCH v2 0/4] support for changing cpu.shares for inactive domains from virsh cmd

Hu Tao hutao at cn.fujitsu.com
Mon May 9 08:30:50 UTC 2011


Currently cpu.shares can only be configured by editing domains' xmls.
this series enables us to change cpu.shares from virsh cmd schedinfo
even when domain is inactive.

changes:

v2:
  - since v1 patches that delete all generated RPC files(by Daniel) and
    that refactor remote generator(by Matthias) have gone into master
    branch, which affects the series heavily. So rebase the series on
    the latest code.

Hu Tao (4):
  introduce virDomainSetSchedulerParametersFlags
  qemu: introduce qemuSetSchedulerParametersFlags
  remote: introduce remoteSetSchedulerParametersFlags
  virsh: add --persistent to cmd schedinfo

 daemon/remote.c              |   71 ++++++++++++++++++++++++++++++++++++++++++
 daemon/remote_generator.pl   |    2 +
 include/libvirt/libvirt.h.in |   13 ++++++++
 python/generator.py          |    1 +
 src/driver.h                 |    8 +++++
 src/esx/esx_driver.c         |    1 +
 src/libvirt.c                |   62 ++++++++++++++++++++++++++++++++++++
 src/libvirt_public.syms      |    5 +++
 src/libxl/libxl_driver.c     |    1 +
 src/lxc/lxc_driver.c         |    1 +
 src/openvz/openvz_driver.c   |    1 +
 src/phyp/phyp_driver.c       |    1 +
 src/qemu/qemu_driver.c       |   66 ++++++++++++++++++++++++++++++---------
 src/remote/remote_driver.c   |   69 ++++++++++++++++++++++++++++++++++++++++
 src/remote/remote_protocol.x |   10 +++++-
 src/test/test_driver.c       |    1 +
 src/uml/uml_driver.c         |    1 +
 src/vbox/vbox_tmpl.c         |    1 +
 src/vmware/vmware_driver.c   |    1 +
 src/xen/xen_driver.c         |    1 +
 src/xenapi/xenapi_driver.c   |    1 +
 tools/virsh.c                |   14 ++++++++-
 22 files changed, 315 insertions(+), 17 deletions(-)

-- 
1.7.3.1


-- 
Thanks,
Hu Tao




More information about the libvir-list mailing list