mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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>
This commit is contained in:
1 parent
250e4ae1c7
commit
ce49af7f2c
4 files changed
-49
No files matched your search
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||