diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-02-11 10:15:07 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-02-11 10:15:07 +0000 |
commit | ce49af7f2c633c65cbf0eb10c1b1d503cff7688f (patch) | |
tree | a90163e008213ed6cde9aa91763657424396a687 /tools | |
parent | 250e4ae1c7cd9b51ce0fe265d522dcb6379911a6 (diff) | |
download | xen-ce49af7f2c633c65cbf0eb10c1b1d503cff7688f.tar.gz xen-ce49af7f2c633c65cbf0eb10c1b1d503cff7688f.tar.bz2 xen-ce49af7f2c633c65cbf0eb10c1b1d503cff7688f.zip |
xend: Remove redundant xc.domain_setcpuweight() all the way down to libxenctrl.
Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/libxc/xc_domain.c | 15 | ||||
-rw-r--r-- | tools/libxc/xenctrl.h | 3 | ||||
-rw-r--r-- | tools/python/xen/lowlevel/xc/xc.c | 28 | ||||
-rw-r--r-- | tools/python/xen/xend/XendDomainInfo.py | 3 |
4 files changed, 0 insertions, 49 deletions
diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index f75955c577..0f28ed5ca5 100644 --- a/tools/libxc/xc_domain.c +++ b/tools/libxc/xc_domain.c @@ -350,21 +350,6 @@ int xc_shadow_control(int xc_handle, return (rc == 0) ? domctl.u.shadow_op.pages : rc; } -int xc_domain_setcpuweight(int xc_handle, - uint32_t domid, - float weight) -{ - int sched_id; - int ret; - - /* Figure out which scheduler is currently used: */ - if ( (ret = xc_sched_id(xc_handle, &sched_id)) != 0 ) - return ret; - - /* No-op. */ - return 0; -} - int xc_domain_setmaxmem(int xc_handle, uint32_t domid, unsigned int max_memkb) diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h index f6778dd946..b9e9abd249 100644 --- a/tools/libxc/xenctrl.h +++ b/tools/libxc/xenctrl.h @@ -380,9 +380,6 @@ int xc_vcpu_getinfo(int xc_handle, uint32_t vcpu, xc_vcpuinfo_t *info); -int xc_domain_setcpuweight(int xc_handle, - uint32_t domid, - float weight); long long xc_domain_get_cpu_usage(int xc_handle, domid_t domid, int vcpu); diff --git a/tools/python/xen/lowlevel/xc/xc.c b/tools/python/xen/lowlevel/xc/xc.c index 425ed7b0fe..305138bd70 100644 --- a/tools/python/xen/lowlevel/xc/xc.c +++ b/tools/python/xen/lowlevel/xc/xc.c @@ -237,26 +237,6 @@ static PyObject *pyxc_vcpu_setaffinity(XcObject *self, return zero; } -static PyObject *pyxc_domain_setcpuweight(XcObject *self, - PyObject *args, - PyObject *kwds) -{ - uint32_t dom; - float cpuweight = 1; - - static char *kwd_list[] = { "domid", "cpuweight", NULL }; - - if ( !PyArg_ParseTupleAndKeywords(args, kwds, "i|f", kwd_list, - &dom, &cpuweight) ) - return NULL; - - if ( xc_domain_setcpuweight(self->xc_handle, dom, cpuweight) != 0 ) - return pyxc_error_to_exception(); - - Py_INCREF(zero); - return zero; -} - static PyObject *pyxc_domain_sethandle(XcObject *self, PyObject *args) { int i; @@ -1325,14 +1305,6 @@ static PyMethodDef pyxc_methods[] = { " cpumap [list, []]: list of usable CPUs.\n\n" "Returns: [int] 0 on success; -1 on error.\n" }, - { "domain_setcpuweight", - (PyCFunction)pyxc_domain_setcpuweight, - METH_VARARGS | METH_KEYWORDS, "\n" - "Set cpuweight scheduler parameter for domain.\n" - " dom [int]: Identifier of domain to be changed.\n" - " cpuweight [float, 1]: VCPU being pinned.\n" - "Returns: [int] 0 on success; -1 on error.\n" }, - { "domain_sethandle", (PyCFunction)pyxc_domain_sethandle, METH_VARARGS, "\n" diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 1e9c1b11f5..f00ac38ce6 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1750,9 +1750,6 @@ class XendDomainInfo: self.image = image.create(self, self.info) - xc.domain_setcpuweight(self.domid, \ - self.info['vcpus_params']['weight']) - # repin domain vcpus if a restricted cpus list is provided # this is done prior to memory allocation to aide in memory # distribution for NUMA systems. |