Received: from eggs.gnu.org ([2001:4830:134:3::10]:43341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO0SU-0001L1-UK for qemu-devel@nongnu.org; Fri, 15 Jul 2016 06:35:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bO0SQ-00079E-WA for qemu-devel@nongnu.org; Fri, 15 Jul 2016 06:35:02 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:35752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO0SQ-000797-OI for qemu-devel@nongnu.org; Fri, 15 Jul 2016 06:34:58 -0400 Received: by mail-wm0-x22f.google.com with SMTP id f65so20576287wmi.0 for ; Fri, 15 Jul 2016 03:34:58 -0700 (PDT) Sender: Paolo Bonzini References: <1468575911-20656-1-git-send-email-pl@kamp.de> <1468577253.22036.4.camel@redhat.com> <5788B69D.7050108@kamp.de> From: Paolo Bonzini Message-ID: <21374c0d-4250-3cdf-91c2-69315cfff52e@redhat.com> Date: Fri, 15 Jul 2016 12:34:54 +0200 MIME-Version: 1.0 In-Reply-To: <5788B69D.7050108@kamp.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] vnc-tight: fix regression with libxenstore List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven , Gerd Hoffmann Cc: jgross@suse.com, qemu-devel@nongnu.org On 15/07/2016 12:10, Peter Lieven wrote: > Am 15.07.2016 um 12:07 schrieb Gerd Hoffmann: >> On Fr, 2016-07-15 at 11:45 +0200, Peter Lieven wrote: >>> commit 095497ff added thread local storage for the color counting >>> palette. Unfortunately, a VncPalette is about 7kB on a x86_64 system. >>> This memory is reserved from the stack of every thread and it >>> exhausted the stack space of a libxenstore thread. >>> >>> Fix this by allocating memory only for the VNC encoding thread. >> Added to vnc queue. > > Please wait. Paolo mentioned that TLS is not allocated from the stack. Actually it does---which is not a problem, but then the stack size from pthread attributes should be increased IMHO. Anyway, the patch is okay. Paolo > Maybe this patch is ok, but we need a different commit message then.