From: Ian Campbell Subject: Re: [PATCH v2] xen/arm: Correctly support WARN_ON Date: Tue, 9 Sep 2014 10:19:00 +0100 Message-ID: <1410254340.8217.52.camel@kazak.uk.xensource.com> References: <1407256336-11839-1-git-send-email-julien.grall@linaro.org> <1410181281.3680.3.camel@kazak.uk.xensource.com> <540E0128.8070506@linaro.org> <540E0258.8040702@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XRHZo-00018i-HS for xen-devel@lists.xenproject.org; Tue, 09 Sep 2014 09:19:04 +0000 In-Reply-To: <540E0258.8040702@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Mon, 2014-09-08 at 12:24 -0700, Julien Grall wrote: > On 08/09/14 12:19, Julien Grall wrote: > >> > >> OOI what is the size increase of the final (stripped) binary with this > >> patch? > > > > I compared the file xen/xen and on both arm32/arm64 the binary is > > smaller of about 2%. > > > > I think this is because previously gcc wasn't merge the string when > > BUG_ON was used in inline function. > > BTW this series won't work correctly because of XSA-102 on ARM64 when > WARN_ON/BUG_ON/ASSERT is used in startup code. > This is because the "current" is set to a debug sanity value. > > Do you plan to send the series to add support for 32-bit userspace on > 64-bits kernels for Xen 4.5? I must confess I'd forgotten about it. I'll dig it out and brush the cobwebs off ASAP. In the meantime can the test at the head of do_trap_hypervisor be extended to DTRT with traps from EL2 (i.e. skip the rest of the expression)? Ian.