]> xenbits.xensource.com Git - xen.git/commitdiff
bitkeeper revision 1.1159.1.254 (4177bdf4aXE2he9nGLsYIcckKPG2LA)
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Thu, 21 Oct 2004 13:47:32 +0000 (13:47 +0000)
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Thu, 21 Oct 2004 13:47:32 +0000 (13:47 +0000)
Remove netbsd domain builder.

tools/libxc/xc.h
tools/python/xen/lowlevel/xc/xc.c

index 803b768d81c31b779e245909409878c13093add2..e022feb7ebccd8ff116ba61ab02851f39ca83ee5 100644 (file)
@@ -92,12 +92,6 @@ int xc_linux_build(int xc_handle,
                    unsigned int control_evtchn,
                    unsigned long flags);
 
-int xc_netbsd_build(int xc_handle,
-                    u32 domid,
-                    const char *image_name,
-                    const char *cmdline,
-                    unsigned int control_evtchn);
-
 int xc_bvtsched_global_set(int xc_handle,
                            unsigned long ctx_allow);
 
index 69eadf205a458d630d08e8c6fbcd5c3a99020966..1e4c9af930aaadb42e84eab02deae819cb0c0db7 100644 (file)
@@ -369,32 +369,6 @@ static PyObject *pyxc_linux_build(PyObject *self,
     return zero;
 }
 
-static PyObject *pyxc_netbsd_build(PyObject *self,
-                                   PyObject *args,
-                                   PyObject *kwds)
-{
-    XcObject *xc = (XcObject *)self;
-
-    u32   dom;
-    char *image, *ramdisk = NULL, *cmdline = "";
-    int   control_evtchn;
-
-    static char *kwd_list[] = { "dom", "control_evtchn",
-                                "image", "ramdisk", "cmdline", NULL };
-
-    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iis|ssi", kwd_list, 
-                                      &dom, &control_evtchn,
-                                      &image, &ramdisk, &cmdline) )
-        return NULL;
-
-    if ( xc_netbsd_build(xc->xc_handle, dom, image, 
-                         cmdline, control_evtchn) != 0 )
-        return PyErr_SetFromErrno(xc_error);
-    
-    Py_INCREF(zero);
-    return zero;
-}
-
 static PyObject *pyxc_bvtsched_global_set(PyObject *self,
                                           PyObject *args,
                                           PyObject *kwds)
@@ -940,15 +914,6 @@ static PyMethodDef pyxc_methods[] = {
       " cmdline [str, n/a]: Kernel parameters, if any.\n\n"
       "Returns: [int] 0 on success; -1 on error.\n" },
 
-    { "netbsd_build", 
-      (PyCFunction)pyxc_netbsd_build, 
-      METH_VARARGS | METH_KEYWORDS, "\n"
-      "Build a new NetBSD guest OS.\n"
-      " dom     [int]:     Identifier of domain to build into.\n"
-      " image   [str]:      Name of kernel image file. May be gzipped.\n"
-      " cmdline [str, n/a]: Kernel parameters, if any.\n\n"
-      "Returns: [int] 0 on success; -1 on error.\n" },
-
     { "bvtsched_global_set",
       (PyCFunction)pyxc_bvtsched_global_set,
       METH_VARARGS | METH_KEYWORDS, "\n"