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

[Xen-changelog] [xen-unstable] fs-back: unmapp all shared ring pages when a domain dies



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1237538633 0
# Node ID 3dcb5ad8be0cecc33f2ba2bfb4eb2b79424766ad
# Parent  2b61a1ee35eec234545413c0027ff0347daba0eb
fs-back: unmapp all shared ring pages when a domain dies

This bug causes some pages not to be properly freed by xen, hence
after a cycle of 50 save\restore we don't have enough spare memory to
start 2 VMs any more. This patch fixes the issue properly unmapping
all the pages needed by the shared ring.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 tools/fs-back/fs-backend.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 2b61a1ee35ee -r 3dcb5ad8be0c tools/fs-back/fs-backend.c
--- a/tools/fs-back/fs-backend.c        Fri Mar 20 08:42:59 2009 +0000
+++ b/tools/fs-back/fs-backend.c        Fri Mar 20 08:43:53 2009 +0000
@@ -161,7 +161,7 @@ static void terminate_mount_request(stru
     while (!xenbus_frontend_state_changed(mount, STATE_CLOSING));
     xenbus_write_backend_state(mount, STATE_CLOSED);
 
-    xc_gnttab_munmap(mount->gnth, mount->ring.sring, 1);
+    xc_gnttab_munmap(mount->gnth, mount->ring.sring, mount->shared_ring_size);
     xc_gnttab_close(mount->gnth);
     xc_evtchn_unbind(mount->evth, mount->local_evtchn);
     xc_evtchn_close(mount->evth);

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


 


Rackspace

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