From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juergen Gross Subject: Re: [Xen-devel] [PATCH] xen: remove xenstore watches of backends when terminating qemu Date: Thu, 14 Jul 2016 11:58:45 +0200 Message-ID: <57876255.6040407@suse.com> References: <1468413065-10299-1-git-send-email-jgross@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1468413065-10299-1-git-send-email-jgross@suse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: "Qemu-devel" To: qemu-devel@nongnu.org, xen-devel@lists.xensource.com Cc: anthony.perard@citrix.com, sstabellini@kernel.org, kraxel@redhat.com List-Id: xen-devel@lists.xenproject.org On 13/07/16 14:31, Juergen Gross wrote: > Xenstore watches of the /local/domain//backend/ directories > are never removed. This can lead to a memory leak in xenstored, > especially when xenstored is running in another domain (this will be > the case either for a system with xenstore-stubdom, or with driver > domains running qemu-based backends). > > Avoid this problem by calling xs_unwatch() for these directories when > terminating qemu. > > Signed-off-by: Juergen Gross Please ignore this patch. It is not needed. The issue in xenstored is _not_ due to not removed watches, but due to non freed memory after sending a watch event. Juergen