Received: from eggs.gnu.org ([208.118.235.92]:49548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQ5oG-00045i-Bj for qemu-devel@nongnu.org; Thu, 03 May 2012 19:51:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQ5oE-00047j-Og for qemu-devel@nongnu.org; Thu, 03 May 2012 19:51:43 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:60547 helo=akado.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQ5oE-00047W-HM for qemu-devel@nongnu.org; Thu, 03 May 2012 19:51:42 -0400 Date: Fri, 4 May 2012 03:51:37 +0400 (MSK) From: malc In-Reply-To: <4FA2E46B.4070609@siemens.com> Message-ID: References: <4FA2D4C8.7010007@siemens.com> <4FA2E46B.4070609@siemens.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH 1.1] audio: Always call fini on exit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel On Thu, 3 May 2012, Jan Kiszka wrote: > On 2012-05-03 16:32, malc wrote: > > On Thu, 3 May 2012, Jan Kiszka wrote: > > > >> Not only clean up enabled voices but any registered one. Backends like > >> pulsaudio rely on unconditional fini handler invocations. > >> > >> This fixes "Memory pool destroyed but not all memory blocks freed!" > >> warnings on VM shutdowns when pa is used. > > > > Perhaps it's better to actually handle VOICE_DISABLE in pa's ctl_[in|out]? > > This might be some additional issue (that pa is not supporting > enable/disable). In any case, it is unrelated to this one: fini > corresponds to init. And as we initialized the voice, we also have to > finalize it on shutdown. That's what this patch is fixing. > The issue is that i don't remember exactly why it iterates only over enabled voices, maybe there was a reason, maybe there wasn't, need to think it over. -- mailto:av1474@comtv.ru