WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Match rename of free_pages field to free_memory

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Match rename of free_pages field to free_memory
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 01 Dec 2005 11:20:10 +0000
Delivery-date: Thu, 01 Dec 2005 11:20:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User rread@xxxxxxxxxxxxxxxxxxxxxxxxxxx
# Node ID 9ff0a75fc3f703663f49df93d385624b819862b4
# Parent  6bc8ceab6dff49acb63f88ed2bb7403111330b29
Match rename of free_pages field to free_memory

Signed-off-by: Robert Read <rread@xxxxxxxxxxxxx>

diff -r 6bc8ceab6dff -r 9ff0a75fc3f7 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py     Thu Dec  1 03:07:24 2005
+++ b/tools/python/xen/xm/create.py     Thu Dec  1 03:11:49 2005
@@ -821,7 +821,7 @@
     ret = 1
 
     xc = xen.lowlevel.xc.xc()
-    free_mem = xc.physinfo()['free_pages'] / 256
+    free_mem = xc.physinfo()['free_memory']
     domU_need_mem = opts.vals.memory + SLACK 
 
     # we already have enough free memory, return success
@@ -839,7 +839,7 @@
     while timeout > 0:
         time.sleep(0.1) # sleep 100ms
 
-        free_mem = xc.physinfo()['free_pages'] / 256
+        free_mem = xc.physinfo()['free_memory']
         if free_mem >= domU_need_mem:
             ret = 0
             break

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Match rename of free_pages field to free_memory, Xen patchbot -unstable <=