|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 12/13] python: remove permission 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 permission related python binding left. Remove them.
Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
---
tools/python/xen/lowlevel/xc/xc.c | 97 ---------------------------------------
1 file changed, 97 deletions(-)
diff --git a/tools/python/xen/lowlevel/xc/xc.c
b/tools/python/xen/lowlevel/xc/xc.c
index c88386f..5039f94 100644
--- a/tools/python/xen/lowlevel/xc/xc.c
+++ b/tools/python/xen/lowlevel/xc/xc.c
@@ -608,74 +608,6 @@ static PyObject *pyxc_domain_set_target_mem(XcObject
*self, PyObject *args)
return zero;
}
-static PyObject *pyxc_domain_ioport_permission(XcObject *self,
- PyObject *args,
- PyObject *kwds)
-{
- uint32_t dom;
- int first_port, nr_ports, allow_access, ret;
-
- static char *kwd_list[] = { "domid", "first_port", "nr_ports",
"allow_access", NULL };
-
- if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiii", kwd_list,
- &dom, &first_port, &nr_ports,
&allow_access) )
- return NULL;
-
- ret = xc_domain_ioport_permission(
- self->xc_handle, dom, first_port, nr_ports, allow_access);
- if ( ret != 0 )
- return pyxc_error_to_exception(self->xc_handle);
-
- Py_INCREF(zero);
- return zero;
-}
-
-static PyObject *pyxc_domain_irq_permission(PyObject *self,
- PyObject *args,
- PyObject *kwds)
-{
- XcObject *xc = (XcObject *)self;
- uint32_t dom;
- int pirq, allow_access, ret;
-
- static char *kwd_list[] = { "domid", "pirq", "allow_access", NULL };
-
- if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iii", kwd_list,
- &dom, &pirq, &allow_access) )
- return NULL;
-
- ret = xc_domain_irq_permission(
- xc->xc_handle, dom, pirq, allow_access);
- if ( ret != 0 )
- return pyxc_error_to_exception(xc->xc_handle);
-
- Py_INCREF(zero);
- return zero;
-}
-
-static PyObject *pyxc_domain_iomem_permission(PyObject *self,
- PyObject *args,
- PyObject *kwds)
-{
- XcObject *xc = (XcObject *)self;
- uint32_t dom;
- unsigned long first_pfn, nr_pfns, allow_access, ret;
-
- static char *kwd_list[] = { "domid", "first_pfn", "nr_pfns",
"allow_access", NULL };
-
- if ( !PyArg_ParseTupleAndKeywords(args, kwds, "illi", kwd_list,
- &dom, &first_pfn, &nr_pfns,
&allow_access) )
- return NULL;
-
- ret = xc_domain_iomem_permission(
- xc->xc_handle, dom, first_pfn, nr_pfns, allow_access);
- if ( ret != 0 )
- return pyxc_error_to_exception(xc->xc_handle);
-
- Py_INCREF(zero);
- return zero;
-}
-
static PyObject *pyxc_domain_set_time_offset(XcObject *self, PyObject *args)
{
uint32_t dom;
@@ -925,35 +857,6 @@ static PyMethodDef pyxc_methods[] = {
" mem_kb [int]: .\n"
"Returns: [int] 0 on success; -1 on error.\n" },
- { "domain_ioport_permission",
- (PyCFunction)pyxc_domain_ioport_permission,
- METH_VARARGS | METH_KEYWORDS, "\n"
- "Allow a domain access to a range of IO ports\n"
- " dom [int]: Identifier of domain to be allowed access.\n"
- " first_port [int]: First IO port\n"
- " nr_ports [int]: Number of IO ports\n"
- " allow_access [int]: Non-zero means enable access; else disable
access\n\n"
- "Returns: [int] 0 on success; -1 on error.\n" },
-
- { "domain_irq_permission",
- (PyCFunction)pyxc_domain_irq_permission,
- METH_VARARGS | METH_KEYWORDS, "\n"
- "Allow a domain access to a physical IRQ\n"
- " dom [int]: Identifier of domain to be allowed access.\n"
- " pirq [int]: The Physical IRQ\n"
- " allow_access [int]: Non-zero means enable access; else disable
access\n\n"
- "Returns: [int] 0 on success; -1 on error.\n" },
-
- { "domain_iomem_permission",
- (PyCFunction)pyxc_domain_iomem_permission,
- METH_VARARGS | METH_KEYWORDS, "\n"
- "Allow a domain access to a range of IO memory pages\n"
- " dom [int]: Identifier of domain to be allowed access.\n"
- " first_pfn [long]: First page of I/O Memory\n"
- " nr_pfns [long]: Number of pages of I/O Memory (>0)\n"
- " allow_access [int]: Non-zero means enable access; else disable
access\n\n"
- "Returns: [int] 0 on success; -1 on error.\n" },
-
{ "pages_to_kib",
(PyCFunction)pyxc_pages_to_kib,
METH_VARARGS, "\n"
--
2.1.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |