From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R89bF-0002YJ-Jp for qemu-devel@nongnu.org; Mon, 26 Sep 2011 07:43:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R89bE-00020j-F9 for qemu-devel@nongnu.org; Mon, 26 Sep 2011 07:43:53 -0400 Received: from goliath.siemens.de ([192.35.17.28]:34304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R89bE-00020R-4R for qemu-devel@nongnu.org; Mon, 26 Sep 2011 07:43:52 -0400 Message-ID: <4E806573.6000207@siemens.com> Date: Mon, 26 Sep 2011 13:43:47 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <4E802DDD.8090100@siemens.com> <4E805923.50806@siemens.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] tcg: Remove stack protection from helper functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Blue Swirl , Laurent Desnogues , Anthony Liguori , Mulyadi Santosa , qemu-devel On 2011-09-26 13:33, Peter Maydell wrote: > On 26 September 2011 11:51, Jan Kiszka wrote: >> This increases the overhead of frequently executed helpers. We need to >> move rule past QEMU_CFLAGS assignment to ensure that the required simple >> assignment picks up all bits. The signal workaround is moved just for >> the sake of consistency. > >> +# NOTE: Must be after the last QEMU_CFLAGS assignment >> +op_helper.o user-exec.o: QEMU_CFLAGS := $(subst -fstack-protector-all,,$(QEMU_CFLAGS)) $(HELPER_CFLAGS) > > Why also user-exec.o ? That's a good question. It doesn't look like it's deserving this. > Why not the other source files with helpers in? Name them and I add them. > This doesn't seem very consistent. Maybe the right answer is to have > some of the offending helper functions inline instead? I can't imagine that this could be a short- or even mid-term answer. Inlining is a huge work. > (Or to not > have -fstack-protector-all globally?) Opt-in instead of opt-out, that might be some approach, though I bet the out-out set still bets the opt-in crowed by some orders of magnitude. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux