libxc: remove useless stuff from domain builder

Remove unused fields from the domain builder and associated functions.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Juergen Gross authored and Ian Campbell committed 2015-09-25 16:04:22 +01:00
1 parent 488508b49a
commit 8f8e469520
2 files changed
+3 -9

No files matched your search

+3 -7
View File
@@ -463,7 +463,6 @@ static PyObject *pyxc_linux_build(XcObject *self,
char *image, *ramdisk = NULL, *cmdline = "", *features = NULL;
int flags = 0;
int store_evtchn, console_evtchn;
int vhpt = 0;
int superpages = 0;
unsigned int mem_mb;
unsigned long store_mfn = 0;
@@ -477,23 +476,20 @@ static PyObject *pyxc_linux_build(XcObject *self,
"console_evtchn", "image",
/* optional */
"ramdisk", "cmdline", "flags",
"features", "vhpt", "superpages", NULL };
"features", "superpages", NULL };
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiis|ssisii", kwd_list,
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiis|ssisi", kwd_list,
&domid, &store_evtchn, &mem_mb,
&console_evtchn, &image,
/* optional */
&ramdisk, &cmdline, &flags,
&features, &vhpt, &superpages) )
&features, &superpages) )
return NULL;
xc_dom_loginit(self->xc_handle);
if (!(dom = xc_dom_allocate(self->xc_handle, cmdline, features)))
return pyxc_error_to_exception(self->xc_handle);
/* for IA64 */
dom->vhpt_size_log2 = vhpt;
dom->superpages = superpages;
if ( xc_dom_linux_build(self->xc_handle, dom, domid, mem_mb, image,
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.