[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 11/13] python: remove hvm related libxc python bindings



Mostly for historical reasons Xen includes Python bindings for libxc.
They have been used by xm/xend in the past but nowadays there is no
user of hvm related python binding left. Remove them.

Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
---
 tools/python/xen/lowlevel/xc/xc.c | 92 ---------------------------------------
 1 file changed, 92 deletions(-)

diff --git a/tools/python/xen/lowlevel/xc/xc.c 
b/tools/python/xen/lowlevel/xc/xc.c
index 5fcee3f..c88386f 100644
--- a/tools/python/xen/lowlevel/xc/xc.c
+++ b/tools/python/xen/lowlevel/xc/xc.c
@@ -146,70 +146,6 @@ static PyObject *pyxc_domain_getinfo(XcObject *self,
     return list;
 }
 
-static PyObject *pyxc_hvm_param_get(XcObject *self,
-                                    PyObject *args,
-                                    PyObject *kwds)
-{
-    uint32_t dom;
-    int param;
-    uint64_t value;
-
-    static char *kwd_list[] = { "domid", "param", NULL }; 
-    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "ii", kwd_list,
-                                      &dom, &param) )
-        return NULL;
-
-    if ( xc_hvm_param_get(self->xc_handle, dom, param, &value) != 0 )
-        return pyxc_error_to_exception(self->xc_handle);
-
-    return PyLong_FromUnsignedLongLong(value);
-
-}
-
-static PyObject *pyxc_hvm_param_set(XcObject *self,
-                                    PyObject *args,
-                                    PyObject *kwds)
-{
-    uint32_t dom;
-    int param;
-    uint64_t value;
-
-    static char *kwd_list[] = { "domid", "param", "value", NULL }; 
-    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiL", kwd_list,
-                                      &dom, &param, &value) )
-        return NULL;
-
-    if ( xc_hvm_param_set(self->xc_handle, dom, param, value) != 0 )
-        return pyxc_error_to_exception(self->xc_handle);
-
-    Py_INCREF(zero);
-    return zero;
-}
-
-static PyObject *pyxc_gnttab_hvm_seed(XcObject *self,
-                                     PyObject *args,
-                                     PyObject *kwds)
-{
-    uint32_t dom, console_domid, xenstore_domid;
-    unsigned long xenstore_gmfn = 0;
-    unsigned long console_gmfn = 0;
-    static char *kwd_list[] = { "domid",
-                               "console_gmfn", "xenstore_gmfn",
-                               "console_domid", "xenstore_domid", NULL };
-    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiii", kwd_list,
-                                      &dom,
-                                     &console_gmfn, &xenstore_gmfn,
-                                     &console_domid, &xenstore_domid) )
-        return NULL;
-
-    if ( xc_dom_gnttab_hvm_seed(self->xc_handle, dom,
-                               console_gmfn, xenstore_gmfn,
-                               console_domid, xenstore_domid) != 0 )
-        return pyxc_error_to_exception(self->xc_handle);
-
-    return Py_None;
-}
-
 static PyObject *pyxc_evtchn_alloc_unbound(XcObject *self,
                                            PyObject *args,
                                            PyObject *kwds)
@@ -897,34 +833,6 @@ static PyMethodDef pyxc_methods[] = {
       "reason why it shut itself down.\n"
       " cpupool  [int]   Id of cpupool domain is bound to.\n" },
 
-    { "gnttab_hvm_seed",
-      (PyCFunction)pyxc_gnttab_hvm_seed,
-      METH_KEYWORDS, "\n"
-      "Initialise HVM guest grant table.\n"
-      " dom     [int]:      Identifier of domain to build into.\n"
-      " console_gmfn [int]: \n"
-      " xenstore_gmfn [int]: \n"
-      " console_domid [int]: \n"
-      " xenstore_domid [int]: \n"
-      "Returns: None on sucess. Raises exception on error.\n" },
-
-    { "hvm_get_param", 
-      (PyCFunction)pyxc_hvm_param_get,
-      METH_VARARGS | METH_KEYWORDS, "\n"
-      "get a parameter of HVM guest OS.\n"
-      " dom     [int]:      Identifier of domain to build into.\n"
-      " param   [int]:      No. of HVM param.\n"
-      "Returns: [long] value of the param.\n" },
-
-    { "hvm_set_param", 
-      (PyCFunction)pyxc_hvm_param_set,
-      METH_VARARGS | METH_KEYWORDS, "\n"
-      "set a parameter of HVM guest OS.\n"
-      " dom     [int]:      Identifier of domain to build into.\n"
-      " param   [int]:      No. of HVM param.\n"
-      " value   [long]:     Value of param.\n"
-      "Returns: [int] 0 on success.\n" },
-
     { "evtchn_alloc_unbound", 
       (PyCFunction)pyxc_evtchn_alloc_unbound,
       METH_VARARGS | METH_KEYWORDS, "\n"
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.