[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] VMX guest memory calculation in python code is corrupted by changeset
# HG changeset patch # User emellor@ewan # Node ID 0f71667deb520ebf748fcc0721e2e79a38abdac8 # Parent 11cca45a9a7972d937b3c04fc432733cd218363d VMX guest memory calculation in python code is corrupted by changeset 6984, this patch fixes it. Also print vmx builder parameters before calling vmx builer, just like what's done before calling linux builder. With this patch, qemu dm using SDL can work, however qemu dm using VNC still has bug, we will fix it soon. Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx> diff -r 11cca45a9a79 -r 0f71667deb52 tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Thu Sep 22 10:09:11 2005 +++ b/tools/python/xen/xend/image.py Thu Sep 22 10:21:37 2005 @@ -300,6 +300,18 @@ store_evtchn = self.vm.store_channel.port2 else: store_evtchn = 0 + + log.debug("dom = %d", self.vm.getDomain()) + log.debug("image = %s", self.kernel) + log.debug("control_evtchn = %d", self.device_channel.port2) + log.debug("store_evtchn = %d", store_evtchn) + log.debug("memsize = %d", self.vm.getMemoryTarget() / 1024) + log.debug("memmap = %s", self.memmap_value) + log.debug("cmdline = %s", self.cmdline) + log.debug("ramdisk = %s", self.ramdisk) + log.debug("flags = %d", self.flags) + log.debug("vcpus = %d", self.vm.getVCpuCount()) + ret = xc.vmx_build(dom = self.vm.getDomain(), image = self.kernel, control_evtchn = self.device_channel.port2, @@ -402,7 +414,7 @@ args = args + vnc args = args + ([ "-d", "%d" % self.vm.getDomain(), "-p", "%d" % self.device_channel.port1, - "-m", "%s" % self.vm.getMemoryTarget() / 1024 ]) + "-m", "%s" % (self.vm.getMemoryTarget() / 1024)]) args = args + self.dmargs env = dict(os.environ) env['DISPLAY'] = self.display @@ -437,7 +449,7 @@ """@see ImageHandler.getDomainMemory""" # for ioreq_t and xenstore static_pages = 2 - return mem + self.getPageTableSize(mem * 1024) + 4 * static_pages + return mem + self.getPageTableSize(mem / 1024) + 4 * static_pages def getPageTableSize(self, mem_mb): """Return the size of memory needed for 1:1 page tables for physical _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |