Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3955803rdh; Tue, 28 Nov 2023 08:05:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJNnfVSa+0Qp2Kqf0lEIv/iIJ5O1doKm7shw/6tyCWkSZqjnOuIj/JJ2by3T9kCoviunAX X-Received: by 2002:a05:6830:43a3:b0:6b9:cfc3:65d1 with SMTP id s35-20020a05683043a300b006b9cfc365d1mr9946569otv.17.1701187529703; Tue, 28 Nov 2023 08:05:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701187529; cv=none; d=google.com; s=arc-20160816; b=O1V4UyHurRGx7YcahcPYcjZT440jtCI50YWKJDqTwy+Z3wOOVawzm8RMlR3754Kd/M U04baoWVcHhJvl9Foj6F3ifaBQdnnSZjY0iuOyvTQbk+PmcHNCTGp16BIydg0g+sBNcb mrsqUI1Wb5sSW9IjV5Q1ikD4xtmJzDITBfGdjp4E4qphG4nRCNXZZ6E/lWI8Lr/LQDka 808MtuE79MftGNkUo4CfYKX86BLmi3m8r1wEexKGov8VtAZl64chTHjxznIfoYHEJB95 DnKrUxxILm9NT9IAT/DbvozWVPPYHWmZa3j8A3ak3qdLksZroTaAjAOx+q76Ddbhc5WK a3uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ZbOAIQjytTHlygvBJZdtmYHZgd+py/hKn6bkyMaazjs=; fh=L/K1b+ZMcthi5H1EdDes0epK/9IJP0oNvXJLiL4azL0=; b=A0Ws3w1plO1x6EKXjSl8fUPxYzVnaik39Nb1OWO7Q2Smcmv3WKq8KIRu0I62I805wO ONUZ82hWeXb9B7MPt6jH8IwJPjk65Uqs0+iZlXR47A0kL9S7Cifwot5tGhuD4QH7HH4m B0WdtyF9Tvlzj5IIfHCGEL70ao2DO7Hd2YnGaHs8TOXaa1jd7S8XRrDJKqGjQB4LhC7/ 5h45xIukSqe4qU8nNSzkduFQXn8f4aLorAXuGj/GIeQD1svE1u8+zjYjtH21iZmhDSXt phpnQAbHxuA1ZGQNRrg6FdxnrTFq6SLqDkZ5+e47yXQwv9hBlFYq440OLPDr5Rl7dEux sg8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=WqvcBgi4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a9-20020a9d4709000000b006c62973de33si4826124otf.182.2023.11.28.08.05.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 08:05:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=WqvcBgi4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 33E3E8057B21; Tue, 28 Nov 2023 02:09:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344017AbjK1KJd (ORCPT + 99 others); Tue, 28 Nov 2023 05:09:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343969AbjK1KJc (ORCPT ); Tue, 28 Nov 2023 05:09:32 -0500 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D418DC; Tue, 28 Nov 2023 02:09:39 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 882A740E01B1; Tue, 28 Nov 2023 10:09:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id n6vaYX6mQPGx; Tue, 28 Nov 2023 10:09:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1701166173; bh=ZbOAIQjytTHlygvBJZdtmYHZgd+py/hKn6bkyMaazjs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WqvcBgi4X9QIQCMq9rbbSQ5yckzcUFi2nYsW5MeInmATYRTahKqBugagSn2r6mcCf 0OKLl1fUw7IGcqogaH5K60o9MnxTMAwqVZcoLJj+TMs/KT0za6Zq7t1tW2/Ky9ATC4 pMaezQt2tstNf5o+V8MgG9hsMUIkDdRe8+AHDweomKer8/hpIZOyUDVdCsCvQm3EJp R8fH+CyGxdZZedQ8ges+Y8u0LMmQYV3AqbrSkYKdbd1u6YGggNSvJV8KIpYwS/MrtT 8NLKg58ZHCK194AabA4fUcsX2l5x6TPCAG6E8WunhkXo7OyDI18O5HIsYKRlEnF2xz DK+vBY+Etna4jLAt3huPcAlHSrV/TsprLkW+MM74k+XziphA6FKIN0HOJarlWLhol2 K0F1NhYJ5bIokwuhXGJqZ0FXH/v94Ul/8v435Jva0XF3m/skw6ISeuyDuv7kpDbOhT fXNefHnI2Dc5iXbQpfiCXIb74g9FH7zPTXzsEMG2ez0G3YN8cMrrFRtDqZT7WQJUuc CX3jZGcfJrp5UiW8OoFEM4FajOlEuVTcNzPYei0+052dHmkxO7AbDriA2oZOklc953 dej16pz5yYo1mdKVZaGNo/ODqFn8nXdYtyFEtOfQEi8eCl0wau/qz0RlzdveGBe5Mv d2OWeQiMp1IFOzr8SWk0eIUk= Received: from zn.tnic (pd95304da.dip0.t-ipconnect.de [217.83.4.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 8B4B840E01A5; Tue, 28 Nov 2023 10:09:11 +0000 (UTC) Date: Tue, 28 Nov 2023 11:09:10 +0100 From: Borislav Petkov To: Xin Li Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, linux-hyperv@vger.kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, luto@kernel.org, pbonzini@redhat.com, seanjc@google.com, peterz@infradead.org, jgross@suse.com, ravi.v.shankar@intel.com, mhiramat@kernel.org, andrew.cooper3@citrix.com, jiangshanlai@gmail.com, nik.borisov@suse.com Subject: Re: [PATCH v12 24/37] x86/idtentry: Incorporate definitions/declarations of the FRED entries Message-ID: <20231128100910.GSZWW8RnyhX0YQjwDm@fat_crate.local> References: <20231003062458.23552-1-xin3.li@intel.com> <20231003062458.23552-25-xin3.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231003062458.23552-25-xin3.li@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 28 Nov 2023 02:09:47 -0800 (PST) On Mon, Oct 02, 2023 at 11:24:45PM -0700, Xin Li wrote: > FRED and IDT can share most of the definitions and declarations so > that in the majority of cases the actual handler implementation is the > same. > > The differences are the exceptions where FRED stores exception related > information on the stack and the sysvec implementations as FRED can > handle irqentry/exit() in the dispatcher instead of having it in each > handler. > > Also add stub defines for vectors which are not used due to Kconfig > decisions to spare the ifdeffery in the actual FRED dispatch code. > > Tested-by: Shan Kang > Signed-off-by: Thomas Gleixner > Signed-off-by: Xin Li This makes me wonder too who the author is. The commit message text sounds like tglx. :) > @@ -137,6 +141,17 @@ static __always_inline void __##func(struct pt_regs *regs, \ > #define DEFINE_IDTENTRY_RAW(func) \ > __visible noinstr void func(struct pt_regs *regs) > > +/** > + * DEFINE_FREDENTRY_RAW - Emit code for raw FRED entry points LOL, "FREDENTRY" ... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette