[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-ia64-devel] Question about memory initial interface modification in Xend?


  • To: <Keir.Fraser@xxxxxxxxxxxx>
  • From: "Zhang, Xing Z" <xing.z.zhang@xxxxxxxxx>
  • Date: Thu, 9 Nov 2006 10:47:53 +0800
  • Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 08 Nov 2006 18:48:22 -0800
  • List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
  • Thread-index: AccDqXRWvsGnr7FCTrmLhU1ZAt+PVw==
  • Thread-topic: Question about memory initial interface modification in Xend?

Hi Keir:

          In your patch 12199 you modified memory initial interface in Xend and suggested IA64 not allocating memory by xend. But I noticed IA32 still use this interface, is there any difference?

 

Below are your changes:

diff -r 96f51a000ed0 -r cf3d69ba5633 tools/python/xen/xend/XendDomainInfo.py

--- a/tools/python/xen/xend/XendDomainInfo.py   Wed Nov 01 18:32:45 2006 +0000

+++ b/tools/python/xen/xend/XendDomainInfo.py   Wed Nov 01 18:37:23 2006 +0000

@@ -1295,9 +1295,11 @@ class XendDomainInfo:

             shadow_cur = xc.shadow_mem_control(self.domid, shadow / 1024)

             self.info['shadow_memory'] = shadow_cur

 

-            # initial memory reservation

-            xc.domain_memory_increase_reservation(self.domid, reservation, 0,

-                                                  0)

+            # Initial memory reservation

+            if not (self._infoIsSet('image') and

+                    sxp.name(self.info['image']) == "hvm"):

+                xc.domain_memory_increase_reservation(

+                    self.domid, reservation, 0, 0)

 

             self._createChannels()

 

thxJ

 

Good good study,day day up ! ^_^

-Wing(zhang xin)

 

OTC,Intel Corporation

 

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.