All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs-backend: fix gnttab unmap
@ 2009-03-19 16:58 Stefano Stabellini
  2009-03-20 22:00 ` Keith Coleman
  0 siblings, 1 reply; 3+ messages in thread
From: Stefano Stabellini @ 2009-03-19 16:58 UTC (permalink / raw)
  To: xen-devel

Hi all,
when a stubdom is destroyed, fs-backend does not correctly unmap all the
pages mapped for the shared ring.
This 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@eu.citrix.com>

---

diff -r 633e08774dab tools/fs-back/fs-backend.c
--- a/tools/fs-back/fs-backend.c	Thu Mar 19 14:01:56 2009 +0000
+++ b/tools/fs-back/fs-backend.c	Thu Mar 19 16:33:34 2009 +0000
@@ -161,7 +161,7 @@
     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);

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fs-backend: fix gnttab unmap
  2009-03-19 16:58 [PATCH] fs-backend: fix gnttab unmap Stefano Stabellini
@ 2009-03-20 22:00 ` Keith Coleman
  2009-03-23 10:48   ` Stefano Stabellini
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Coleman @ 2009-03-20 22:00 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: xen-devel

On Thu, Mar 19, 2009 at 12:58 PM, Stefano Stabellini
<stefano.stabellini@eu.citrix.com> wrote:
> Hi all,
> when a stubdom is destroyed, fs-backend does not correctly unmap all the
> pages mapped for the shared ring.
> This 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.
>

I can confirm that fs-backend is more stable. I have performed
hundreds of save/restore cycles without issue.


Keith Coleman

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] fs-backend: fix gnttab unmap
  2009-03-20 22:00 ` Keith Coleman
@ 2009-03-23 10:48   ` Stefano Stabellini
  0 siblings, 0 replies; 3+ messages in thread
From: Stefano Stabellini @ 2009-03-23 10:48 UTC (permalink / raw)
  To: Keith Coleman; +Cc: xen-devel

Keith Coleman wrote:

> On Thu, Mar 19, 2009 at 12:58 PM, Stefano Stabellini
> <stefano.stabellini@eu.citrix.com> wrote:
>> Hi all,
>> when a stubdom is destroyed, fs-backend does not correctly unmap all the
>> pages mapped for the shared ring.
>> This 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.
>>
> 
> I can confirm that fs-backend is more stable. I have performed
> hundreds of save/restore cycles without issue.
> 

good, thanks again for testing.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-23 10:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-19 16:58 [PATCH] fs-backend: fix gnttab unmap Stefano Stabellini
2009-03-20 22:00 ` Keith Coleman
2009-03-23 10:48   ` Stefano Stabellini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.