# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 9b18b85e0146b310f65ecc8d50943e79fa5a8694
# Parent 8dbf531776e12b497d627cfac283934e4c26e847
Remove unused shadow_control functionality from the Python layer. This is
handled in xc_linux_save, and no-one in the Python layer uses this functionality
directly.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
diff -r 8dbf531776e1 -r 9b18b85e0146 tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Wed Oct 19 10:47:51 2005
+++ b/tools/python/xen/lowlevel/xc/xc.c Wed Oct 19 10:51:25 2005
@@ -787,28 +787,6 @@
"extratime", extratime);
}
-static PyObject *pyxc_shadow_control(PyObject *self,
- PyObject *args,
- PyObject *kwds)
-{
- XcObject *xc = (XcObject *)self;
-
- uint32_t dom;
- int op=0;
-
- static char *kwd_list[] = { "dom", "op", NULL };
-
- if ( !PyArg_ParseTupleAndKeywords(args, kwds, "i|i", kwd_list,
- &dom, &op) )
- return NULL;
-
- if ( xc_shadow_control(xc->xc_handle, dom, op, NULL, 0, NULL) < 0 )
- return PyErr_SetFromErrno(xc_error);
-
- Py_INCREF(zero);
- return zero;
-}
-
static PyObject *pyxc_domain_setmaxmem(PyObject *self,
PyObject *args,
PyObject *kwds)
@@ -1115,14 +1093,6 @@
"Returns [dict]: information about Xen"
" [None]: on failure.\n" },
- { "shadow_control",
- (PyCFunction)pyxc_shadow_control,
- METH_VARARGS | METH_KEYWORDS, "\n"
- "Set parameter for shadow pagetable interface\n"
- " dom [int]: Identifier of domain.\n"
- " op [int, 0]: operation\n\n"
- "Returns: [int] 0 on success; -1 on error.\n" },
-
{ "domain_setmaxmem",
(PyCFunction)pyxc_domain_setmaxmem,
METH_VARARGS | METH_KEYWORDS, "\n"
diff -r 8dbf531776e1 -r 9b18b85e0146 tools/python/xen/xend/XendDomain.py
--- a/tools/python/xen/xend/XendDomain.py Wed Oct 19 10:47:51 2005
+++ b/tools/python/xen/xend/XendDomain.py Wed Oct 19 10:51:25 2005
@@ -473,14 +473,7 @@
if not dev:
raise XendError("invalid vif")
return dev.setCreditLimit(credit, period)
-
- def domain_shadow_control(self, domid, op):
- """Shadow page control."""
- dominfo = self.domain_lookup(domid)
- try:
- return xc.shadow_control(dominfo.getDomid(), op)
- except Exception, ex:
- raise XendError(str(ex))
+
def domain_maxmem_set(self, domid, mem):
"""Set the memory limit for a domain.
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|