Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp399979lqp; Tue, 11 Jun 2024 07:46:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUC+z2qpxrazHw/rPRX9OjNxE8kcmzYvfVI3kFDeJAidLEG+g8UiXxfXhDt8P2PGWPIhknt5g0OH2aUv6wgGjw8lxna1+q22o+Y0WgRug== X-Google-Smtp-Source: AGHT+IGtzq2U3GIZ/OhpH/toqZT/awofkHfav14iNU1pbtEfkzZcGRoPt7gav1cEKvYSXEnGFB+G X-Received: by 2002:a17:903:32d2:b0:1f6:39d8:dc4f with SMTP id d9443c01a7336-1f6d02c0542mr145950895ad.10.1718117218243; Tue, 11 Jun 2024 07:46:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718117218; cv=pass; d=google.com; s=arc-20160816; b=qpPCLghcisvy2v99/nX5xIy1rUjHnrVccdjONoy54slnUYU/R5DgToZybAF7iGT8gh RghNq6LhHV7h8OuGaO7NppZBhKzqNklr1Wt4WifUf1HO4Y0NvQho5ePIpuwdtj93n/8E AWEMHBERz7SIG3+WEKyHpnf45lqHFrRrr/SFfnCMqVXDsuMQXJejJ2sWOdvCrOTzPrdi Zw2ZB7eLVsgSI5+HEBRDV1Zp3R2rX1QTV/tqZl+vToUUkbDXTuhMrEFhymw+xMQgh7wG mv8GGv/1OvDiRfAHkxGJH2ORjl5JE/FhTS/JCtAszGr4Qs5k4xx4b9TKo2VjpBEAV4kV kZjQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WvNhp+Fkus5gZ4B/gqjVnlOIUixgCRQNYsydZIjO7mI=; fh=/B9bwkBp67MTKik7px1O8nygwgw0C/qfqOM+H678heI=; b=hnNa+cwUOVS236YPamwzo3joz+nzK5G25cbwu7NPf1LiJ0s4AOBC+kJgk+i32auzk9 n+0Q+xTNwlgWhc6RBaXt9/BhcQ+10bm5GRQv87VMvNlX1Twylnbq7sZQkQD23Rep9XAc Ri9Ku5GczJ39LpGFEQCIptaxBXQLl9SQ7Zhh8h0sd214YJ650jTiQRwQqDA+a5d6KkBc 4Z/FqzJJbDqK88ekKBOLjOoG1xtc8rxA1GK78CCKaFQ1wptQ+4itl0KoRRdHS6hsnK98 i0eTq0/XCcoG4j9k/xWsmVyKmnCl5MEJAVpMQJy5mz0++5tgJ/fHu/AdsuXZzo7khOqX pBCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=S2Yfa9KS; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-209950-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209950-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f737c686efsi8168805ad.305.2024.06.11.07.46.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 07:46:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209950-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=S2Yfa9KS; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-209950-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209950-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E1B19288942 for ; Tue, 11 Jun 2024 13:28:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 203DB17E455; Tue, 11 Jun 2024 13:26:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="S2Yfa9KS" Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 542F417CA1D for ; Tue, 11 Jun 2024 13:26:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718112378; cv=none; b=qVnaRjHqh0MSuKgOHQrdMbTb9reWycMNaUwZiZAPh0vzN/KDBSLd3rg/H6F/E7QyGeWlbx/m6I6Dn9IQCgRcghY27tIdKq0dy+H4purKcFhYkMqQbc4eW6G3cinL3Qk2pdyNhXnsRG85KvOiQ+SC2fH2T7OlSr1qLIlWmPkcViU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718112378; c=relaxed/simple; bh=ajXBz2ktbB1pyarbdNgc0OYhAYmvu8ktAdBboXko+64=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iLM2bfoXtB0i9UC4xDiWfkxKe2pU1ZG8A+Yd9siwZC+xy6XaH3F0KUVBT4mF8RqEwUnRepLS6ci8qL8Yt77uoWHL5gGj9SgdAxe6lSacDculDb4DEqHRT8s9R6P0ODNbjAlKYqMZ71BigIdUVJV85RpWstGtCLHAUoYo28H476E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=S2Yfa9KS; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WvNhp+Fkus5gZ4B/gqjVnlOIUixgCRQNYsydZIjO7mI=; b=S2Yfa9KSJEpQ5cREEQUiyIfCMI AQ64vGntshyatBw0QbiAOEUdttu3MV5mSrJZDH8oGmasviTjulLFZsqfBpMXqLXue+6l1PELg0CiJ mcoIKakqsl0vU1UnyO263SLgVOFXe89qRTpuxnj/8ajBW6BucT0dOvnMz3pti+vxNDDsuJXL4euo2 d+gndTEN7XRJ0YSX1o1C2m3XIc0PjX57b8HREmJotCCPJzmDJWQBzvccCG8u4qSEuvkf0fxmAyV6o 8h+OzLuqAeodcRJYvY2N9oAekRITUmAaHh2iTuEv/TRsAvhvUy1OlQos+IXXB2bljW4EWnmzC+xrx 87ZyZcUg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1sH1Vp-0000000BOlI-38uH; Tue, 11 Jun 2024 13:26:11 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 27C2C302792; Tue, 11 Jun 2024 15:26:09 +0200 (CEST) Date: Tue, 11 Jun 2024 15:26:09 +0200 From: Peter Zijlstra To: Borislav Petkov Cc: X86 ML , LKML , "Borislav Petkov (AMD)" Subject: Re: [PATCH v1 00/14] x86/alternatives: Nest them Message-ID: <20240611132609.GH8774@noisy.programming.kicks-ass.net> References: <20240607111701.8366-1-bp@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240607111701.8366-1-bp@kernel.org> On Fri, Jun 07, 2024 at 01:16:47PM +0200, Borislav Petkov wrote: > Borislav Petkov (AMD) (13): > x86/alternative: Zap alternative_ternary() > x86/alternative: Convert alternative() > x86/alternative: Convert alternative_2() > x86/alternative: Convert alternative_input() > x86/alternative: Convert alternative_io() > x86/alternative: Convert alternative_call() > x86/alternative: Convert alternative_call_2() > x86/alternative: Convert ALTERNATIVE_TERNARY() > x86/alternative: Convert ALTERNATIVE_3() > x86/alternative: Convert the asm ALTERNATIVE() macro > x86/alternative: Convert the asm ALTERNATIVE_2() macro > x86/alternative: Convert the asm ALTERNATIVE_3() macro > x86/alternative: Replace the old macros > > Peter Zijlstra (1): > x86/alternatives: Add nested alternatives macros > > arch/x86/include/asm/alternative.h | 225 +++++++++-------------------- > arch/x86/kernel/alternative.c | 20 ++- > arch/x86/kernel/fpu/xstate.h | 14 +- > tools/objtool/arch/x86/special.c | 23 +++ > tools/objtool/special.c | 16 +- > 5 files changed, 125 insertions(+), 173 deletions(-) The whole back and forth with the n_foo things ia weird, but sure, have at. Acked-by: Peter Zijlstra (Intel)