direct-io.hg

changeset 2683:7bc73b540515

bitkeeper revision 1.1159.1.254 (4177bdf4aXE2he9nGLsYIcckKPG2LA)

Remove netbsd domain builder.
author cl349@freefall.cl.cam.ac.uk
date Thu Oct 21 13:47:32 2004 +0000 (2004-10-21)
parents d7a5a934e8d6
children d92269f82bbe ef89e79d3deb
files tools/libxc/xc.h tools/python/xen/lowlevel/xc/xc.c
line diff
     1.1 --- a/tools/libxc/xc.h	Thu Oct 21 12:33:55 2004 +0000
     1.2 +++ b/tools/libxc/xc.h	Thu Oct 21 13:47:32 2004 +0000
     1.3 @@ -92,12 +92,6 @@ int xc_linux_build(int xc_handle,
     1.4                     unsigned int control_evtchn,
     1.5                     unsigned long flags);
     1.6  
     1.7 -int xc_netbsd_build(int xc_handle,
     1.8 -                    u32 domid,
     1.9 -                    const char *image_name,
    1.10 -                    const char *cmdline,
    1.11 -                    unsigned int control_evtchn);
    1.12 -
    1.13  int xc_bvtsched_global_set(int xc_handle,
    1.14                             unsigned long ctx_allow);
    1.15  
     2.1 --- a/tools/python/xen/lowlevel/xc/xc.c	Thu Oct 21 12:33:55 2004 +0000
     2.2 +++ b/tools/python/xen/lowlevel/xc/xc.c	Thu Oct 21 13:47:32 2004 +0000
     2.3 @@ -369,32 +369,6 @@ static PyObject *pyxc_linux_build(PyObje
     2.4      return zero;
     2.5  }
     2.6  
     2.7 -static PyObject *pyxc_netbsd_build(PyObject *self,
     2.8 -                                   PyObject *args,
     2.9 -                                   PyObject *kwds)
    2.10 -{
    2.11 -    XcObject *xc = (XcObject *)self;
    2.12 -
    2.13 -    u32   dom;
    2.14 -    char *image, *ramdisk = NULL, *cmdline = "";
    2.15 -    int   control_evtchn;
    2.16 -
    2.17 -    static char *kwd_list[] = { "dom", "control_evtchn",
    2.18 -                                "image", "ramdisk", "cmdline", NULL };
    2.19 -
    2.20 -    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iis|ssi", kwd_list, 
    2.21 -                                      &dom, &control_evtchn,
    2.22 -                                      &image, &ramdisk, &cmdline) )
    2.23 -        return NULL;
    2.24 -
    2.25 -    if ( xc_netbsd_build(xc->xc_handle, dom, image, 
    2.26 -                         cmdline, control_evtchn) != 0 )
    2.27 -        return PyErr_SetFromErrno(xc_error);
    2.28 -    
    2.29 -    Py_INCREF(zero);
    2.30 -    return zero;
    2.31 -}
    2.32 -
    2.33  static PyObject *pyxc_bvtsched_global_set(PyObject *self,
    2.34                                            PyObject *args,
    2.35                                            PyObject *kwds)
    2.36 @@ -940,15 +914,6 @@ static PyMethodDef pyxc_methods[] = {
    2.37        " cmdline [str, n/a]: Kernel parameters, if any.\n\n"
    2.38        "Returns: [int] 0 on success; -1 on error.\n" },
    2.39  
    2.40 -    { "netbsd_build", 
    2.41 -      (PyCFunction)pyxc_netbsd_build, 
    2.42 -      METH_VARARGS | METH_KEYWORDS, "\n"
    2.43 -      "Build a new NetBSD guest OS.\n"
    2.44 -      " dom     [int]:     Identifier of domain to build into.\n"
    2.45 -      " image   [str]:      Name of kernel image file. May be gzipped.\n"
    2.46 -      " cmdline [str, n/a]: Kernel parameters, if any.\n\n"
    2.47 -      "Returns: [int] 0 on success; -1 on error.\n" },
    2.48 -
    2.49      { "bvtsched_global_set",
    2.50        (PyCFunction)pyxc_bvtsched_global_set,
    2.51        METH_VARARGS | METH_KEYWORDS, "\n"