bitkeeper revision 1.1159.212.66 (42001b6f4kUEhmWXQmgg_vNH-AqiWQ)

Right now, the memory for the 1:1 physical mode page tables comes from the
VMX domain's memory. With this change, when the user asks for a domain with
M Megabytes of memory, we actually allocate M+N megabytes in xend, where
N is the memory for the page table pages.

This simplifies the code in the device models that maps guest memory (we
now map all of it) and the E820 map can also give the full M megabytes to
the guest.

Signed-off-by: Xin B Li <xin.b.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
Signed-off-by: ian.pratt@cl.cam.ac.uk
This commit is contained in:
iap10@labyrinth.cl.cam.ac.uk committed 2005-02-02 00:14:39 +00:00
1 parent a932385698
commit 4fb1a7d302
5 files changed
+46 -24

No files matched your search

+6 -3
View File
@@ -405,15 +405,18 @@ static PyObject *pyxc_vmx_build(PyObject *self,
PyObject *memmap;
int control_evtchn, flags = 0;
int numItems, i;
int memsize;
struct mem_map mem_map;
static char *kwd_list[] = { "dom", "control_evtchn",
static char *kwd_list[] = { "dom", "control_evtchn",
"memsize",
"image", "memmap",
"ramdisk", "cmdline", "flags",
NULL };
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iisO!|ssi", kwd_list,
if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiisO!|ssi", kwd_list,
&dom, &control_evtchn,
&memsize,
&image, &PyList_Type, &memmap,
&ramdisk, &cmdline, &flags) )
return NULL;
@@ -467,7 +470,7 @@ static PyObject *pyxc_vmx_build(PyObject *self,
mem_map.map[i-1].caching_attr = lf4;
}
if ( xc_vmx_build(xc->xc_handle, dom, image, &mem_map,
if ( xc_vmx_build(xc->xc_handle, dom, memsize, image, &mem_map,
ramdisk, cmdline, control_evtchn, flags) != 0 )
return PyErr_SetFromErrno(xc_error);
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.