From: "Jan Beulich" Subject: Re: [PATCH, RFC] x86/HVM: batch vCPU wakeups Date: Wed, 10 Sep 2014 12:58:56 +0100 Message-ID: <5410592002000078000333BF@mail.emea.novell.com> References: <540ED7810200007800032678@mail.emea.novell.com> <20140909212925.GC82414@deinos.phlegethon.org> <540F8123.7060000@citrix.com> <20140910102924.GA44982@deinos.phlegethon.org> <541029E5.9020809@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XRgY7-0003bX-5i for xen-devel@lists.xenproject.org; Wed, 10 Sep 2014 11:58:59 +0000 In-Reply-To: <541029E5.9020809@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper , Tim Deegan Cc: Ian Campbell , xen-devel , Keir Fraser , Ian Jackson List-Id: xen-devel@lists.xenproject.org >>> On 10.09.14 at 12:37, wrote: > I am beginning to wonder whether the use of __attribute__((const)) might > help with get_cpu_info(). Despite the explicit stack pointer reference > which is undoubtedly the source of optimisation confusion for the > compiler, inside a function, the result of get_cpu_info() is genuinely > never going to change, even though the compiler can't necessarily prove > the fact. The const and pure attributes, at least when I last checked, get dropped on the floor by gcc (or at least its code generator / optimizer) for inline functions. Jan