From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752131AbbHRCYd (ORCPT ); Mon, 17 Aug 2015 22:24:33 -0400 Received: from casper.infradead.org ([85.118.1.10]:41432 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799AbbHRCYc (ORCPT ); Mon, 17 Aug 2015 22:24:32 -0400 Date: Tue, 18 Aug 2015 04:24:28 +0200 From: Peter Zijlstra To: Andy Lutomirski Cc: =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Borislav Petkov , "linux-kernel@vger.kernel.org" Subject: Re: Can I use static keys from asm? Message-ID: <20150818022428.GH20948@worktop> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 17, 2015 at 06:34:08PM -0700, Andy Lutomirski wrote: > 2. Context tracking enabled in config but completely disabled at > runtime. Distros do this. I want to nop out the context tracking > hooks. We have a static_key for this, but half the hooks are in asm. > To unsuck case 2, static keys in asm would help. Can I do that? It > would be even better if I could do that in 4.3. I think Anton did a number of patches to enable static_key usage in asm on PowerPC. x86 would need a bit of work but nothing makes it fundamentally impossible.