mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[TOOLS] Paravirt guests have their memory allocated in the
libxenguest builder function. Again, PPC and IA64 will need to do some fixing up. Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
e935122cf5
commit
7554501778
5 files changed
+68
-96
No files matched your search
@@ -334,24 +334,25 @@ static PyObject *pyxc_linux_build(XcObject *self,
|
||||
char *image, *ramdisk = NULL, *cmdline = "", *features = NULL;
|
||||
int flags = 0;
|
||||
int store_evtchn, console_evtchn;
|
||||
unsigned int mem_mb;
|
||||
unsigned long store_mfn = 0;
|
||||
unsigned long console_mfn = 0;
|
||||
|
||||
static char *kwd_list[] = { "domid", "store_evtchn",
|
||||
static char *kwd_list[] = { "domid", "store_evtchn", "memsize",
|
||||
"console_evtchn", "image",
|
||||
/* optional */
|
||||
"ramdisk", "cmdline", "flags",
|
||||
"features", NULL };
|
||||
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiis|ssis", kwd_list,
|
||||
&dom, &store_evtchn,
|
||||
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiis|ssis", kwd_list,
|
||||
&dom, &store_evtchn, &mem_mb,
|
||||
&console_evtchn, &image,
|
||||
/* optional */
|
||||
&ramdisk, &cmdline, &flags,
|
||||
&features) )
|
||||
return NULL;
|
||||
|
||||
if ( xc_linux_build(self->xc_handle, dom, image,
|
||||
if ( xc_linux_build(self->xc_handle, dom, mem_mb, image,
|
||||
ramdisk, cmdline, features, flags,
|
||||
store_evtchn, &store_mfn,
|
||||
console_evtchn, &console_mfn) != 0 ) {
|
||||
|
||||