Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp955691rwd; Tue, 16 May 2023 09:44:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4mB5fp2IRLKrfZGO0ISPKN0vRYyfFOAI2TAIS6NE49Z9tBufeWytUa0cSw18EOmQxDBC5Y X-Received: by 2002:a17:903:1ce:b0:1ac:a02f:c9a4 with SMTP id e14-20020a17090301ce00b001aca02fc9a4mr29517903plh.4.1684255496115; Tue, 16 May 2023 09:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684255496; cv=none; d=google.com; s=arc-20160816; b=zQ943JKuNH2ZijMR2v+6X5qfYAsZsD3/+oTP8Kb7VmzxL3dT8sXIc/iR4njmvdiOnF MI4Sp9qISiHpNkLul1EoCUM2zCTffwnehFq+PjX9/BhKXngAruJXWbTt9elwgpbcwh1u 34gtJ6gVU4rAlcCwxA+nd0NsGYnuXb+/Z4w9CLukimOJVT4NyWgIT6jZto14McXRdyFY o2zdI6MGCQBeTg13gZ6jLlEi8bW6Ti+ORWqsi18wNq+Z1WTd2rGvd1cDxtU6dlrLBwtR Qm86x5G8YqbeYYGY9dBlI61dyI6AMYjqvgAYYAWesdMLgnZ1rP7TDgQOv5uNAioNUVXl aVNQ== 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=aFKM5bz7ROvvSHxsgBF1CZOKnRtiOyBU/TIBLGujOCc=; b=oTZ6JDhpW4MeS7ovH8GZ+5/zYbAvjRZTdRjoGOgDKR+5A9Q5Eyw5HkECN7bpwSx6tU zcoj2TT7evo+wNIt1JgZxNvXEMfWN9ceeiGy0+ncOG3CmbHdOysUPwTelg3w1mind8pc mdeYHJAnexEg7INqikICz2fiKoJfqwU8E8gBNMxMuSW8e+iFsQ6XIaNVvEe/afEgnUAE +ar+rJ4t9aYZCf2Sy8W3DsY6UiLMsKFvVdALxlTHt7hMzX5A8lVF6yBnLBaiO0Gs8W7+ WaaYJCnvV5RBNFNLX/2JSv4Hb5GHWJGl8jj6Gpqj3gz21hww4MnOPNR2/vwZdHDDP9/v OX9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SUSCHB3+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i18-20020a17090332d200b001ab01ba1f89si21598086plr.452.2023.05.16.09.44.37; Tue, 16 May 2023 09:44:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=SUSCHB3+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229811AbjEPQmq (ORCPT + 99 others); Tue, 16 May 2023 12:42:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbjEPQmp (ORCPT ); Tue, 16 May 2023 12:42:45 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CCCBA5ED; Tue, 16 May 2023 09:42:30 -0700 (PDT) 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=aFKM5bz7ROvvSHxsgBF1CZOKnRtiOyBU/TIBLGujOCc=; b=SUSCHB3+QJjTisyN5s4Ep+S1UO 7oMFXSdIdtPzNXveelW3ZBy1RlrgQyFNj2uPSbeYtyfv6/KInKs+fgWQ5RLhBbQbq+TpSci6Y51wa W2xf21ZkIEHdizXCcsJ05AWiAQN/BcgTT7MqP4leScGSF6CE/L4bjNOS8MaJwfKnvTRgyLewiw7yL nEa3GMQCLiA8sDTtelOxkq2bCuClbVDrQQBCJUn8/izrrj4agfIdpdgu7qroXdq6j0FkQUCjTkY2e SVgCpLmTU/PqWzF/rMg6WgAwAnjyuHvFkQmh/yYT89zylVGupxUOtovihVriOW3h10bGLW1Q7F9d6 QcDqCgLg==; 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.94.2 #2 (Red Hat Linux)) id 1pyxkl-004Mu0-KC; Tue, 16 May 2023 16:42:23 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id C5FDC3000DC; Tue, 16 May 2023 18:42:21 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 832442CB5D5E9; Tue, 16 May 2023 18:42:21 +0200 (CEST) Date: Tue, 16 May 2023 18:42:21 +0200 From: Peter Zijlstra To: Sven Schnelle Cc: Thomas Gleixner , Frederic Weisbecker , "Eric W . Biederman" , Mark Rutland , Andy Lutomirski , linux-s390@vger.kernel.org, hca@linux.ibm.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] entry: move the exit path to header files Message-ID: <20230516164221.GA2602133@hirez.programming.kicks-ass.net> References: <20230516133810.171487-1-svens@linux.ibm.com> <20230516133810.171487-2-svens@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230516133810.171487-2-svens@linux.ibm.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 16, 2023 at 03:38:09PM +0200, Sven Schnelle wrote: > @@ -465,4 +470,175 @@ irqentry_state_t noinstr irqentry_nmi_enter(struct pt_regs *regs); > */ > void noinstr irqentry_nmi_exit(struct pt_regs *regs, irqentry_state_t irq_state); > > +static unsigned long exit_to_user_mode_loop(struct pt_regs *regs, > + unsigned long ti_work) Should these things not grow __always_inline/inline when moved into a header? > +{ > +} > + > + > +static void exit_to_user_mode_prepare(struct pt_regs *regs) idem > +{ > +} > +static void syscall_exit_work(struct pt_regs *regs, unsigned long work) and more.. > +{ > +} > +