mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
libxc: remove superpages option for pv domains
The pv domain builder currently supports the additional flag "superpages" to build a pv domain with 2MB pages. This feature isn't being used by any component other than the python xc bindings. Remove the flag and its support from the xc bindings and the domain builder Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Wei Liu <wei.liu2@citrix.com> Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
This commit is contained in:
1 parent
fc5b248644
commit
9b3c6b13e0
3 files changed
+128
-174
No files matched your search
@@ -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 superpages = 0;
|
||||
unsigned int mem_mb;
|
||||
unsigned long store_mfn = 0;
|
||||
unsigned long console_mfn = 0;
|
||||
@@ -476,22 +475,19 @@ static PyObject *pyxc_linux_build(XcObject *self,
|
||||
"console_evtchn", "image",
|
||||
/* optional */
|
||||
"ramdisk", "cmdline", "flags",
|
||||
"features", "superpages", NULL };
|
||||
"features", NULL };
|
||||
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiis|ssisi", kwd_list,
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiis|ssis", kwd_list,
|
||||
&domid, &store_evtchn, &mem_mb,
|
||||
&console_evtchn, &image,
|
||||
/* optional */
|
||||
&ramdisk, &cmdline, &flags,
|
||||
&features, &superpages) )
|
||||
&ramdisk, &cmdline, &flags, &features) )
|
||||
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);
|
||||
|
||||
dom->superpages = superpages;
|
||||
|
||||
if ( xc_dom_linux_build(self->xc_handle, dom, domid, mem_mb, image,
|
||||
ramdisk, flags, store_evtchn, &store_mfn,
|
||||
console_evtchn, &console_mfn) != 0 ) {
|
||||
|
||||