mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
bitkeeper revision 1.1753 (42bbe67ePvjh9K0djYf6xRw2rGNreQ)
Properly remove old plan9 builder from xc header fiel and from xend. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
06420e5d04
commit
dc0838d499
4 files changed
-59
No files matched your search
@@ -286,33 +286,6 @@ static PyObject *pyxc_linux_build(PyObject *self,
|
||||
return Py_BuildValue("{s:i}", "store_mfn", store_mfn);
|
||||
}
|
||||
|
||||
static PyObject *pyxc_plan9_build(PyObject *self,
|
||||
PyObject *args,
|
||||
PyObject *kwds)
|
||||
{
|
||||
XcObject *xc = (XcObject *)self;
|
||||
|
||||
u32 dom;
|
||||
char *image, *ramdisk = NULL, *cmdline = "";
|
||||
int control_evtchn, flags = 0;
|
||||
|
||||
static char *kwd_list[] = { "dom", "control_evtchn",
|
||||
"image", "ramdisk", "cmdline", "flags",
|
||||
NULL };
|
||||
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iis|ssi", kwd_list,
|
||||
&dom, &control_evtchn,
|
||||
&image, &ramdisk, &cmdline, &flags) )
|
||||
return NULL;
|
||||
|
||||
if ( xc_plan9_build(xc->xc_handle, dom, image,
|
||||
cmdline, control_evtchn, flags) != 0 )
|
||||
return PyErr_SetFromErrno(xc_error);
|
||||
|
||||
Py_INCREF(zero);
|
||||
return zero;
|
||||
}
|
||||
|
||||
static PyObject *pyxc_vmx_build(PyObject *self,
|
||||
PyObject *args,
|
||||
PyObject *kwds)
|
||||
@@ -931,15 +904,6 @@ static PyMethodDef pyxc_methods[] = {
|
||||
" vcpus [int, 1]: Number of Virtual CPUS in domain.\n\n"
|
||||
"Returns: [int] 0 on success; -1 on error.\n" },
|
||||
|
||||
{ "plan9_build",
|
||||
(PyCFunction)pyxc_plan9_build,
|
||||
METH_VARARGS | METH_KEYWORDS, "\n"
|
||||
"Build a new Plan 9 guest OS.\n"
|
||||
" dom [long]: 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" },
|
||||
|
||||
{ "vmx_build",
|
||||
(PyCFunction)pyxc_vmx_build,
|
||||
METH_VARARGS | METH_KEYWORDS, "\n"
|
||||
|
||||
@@ -1020,11 +1020,9 @@ from image import \
|
||||
addImageHandlerClass, \
|
||||
ImageHandler, \
|
||||
LinuxImageHandler, \
|
||||
Plan9ImageHandler, \
|
||||
VmxImageHandler
|
||||
|
||||
addImageHandlerClass(LinuxImageHandler)
|
||||
addImageHandlerClass(Plan9ImageHandler)
|
||||
addImageHandlerClass(VmxImageHandler)
|
||||
|
||||
# Ignore the fields we already handle.
|
||||
|
||||
@@ -221,19 +221,6 @@ class LinuxImageHandler(ImageHandler):
|
||||
return 0
|
||||
return ret
|
||||
|
||||
class Plan9ImageHandler(ImageHandler):
|
||||
|
||||
ostype = "plan9"
|
||||
|
||||
def buildDomain(self):
|
||||
return xc.plan9_build(dom = self.vm.getDomain(),
|
||||
image = self.kernel,
|
||||
control_evtchn = self.vm.channel.getRemotePort(),
|
||||
cmdline = self.cmdline,
|
||||
ramdisk = self.ramdisk,
|
||||
flags = self.flags,
|
||||
vcpus = self.vm.vcpus)
|
||||
|
||||
class VmxImageHandler(ImageHandler):
|
||||
|
||||
__exports__ = ImageHandler.__exports__ + [
|
||||
|
||||