From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CE4D3606A31A for ; Tue, 1 Dec 2026 07:49:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=V17Mkq02; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=casper.20170209 header.b=H0rTZYtg DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=UKDu5LROzGogxtcnIEM7YbywZ95Af2OrXQhEddwrJxo=; b=V17Mkq02xYcjSyUx9XHkJVQnRn DSVHqZ0JEgU/TUjmOW+3zFKcDGa+HP2TIpJUHdnx/rwjbsn14+akthergRzi/hh1dUxmFNEj44VdU T5tQYr48yS5jTFaYdd8Yv9pDwlz/Xs0KJVyglSIAFxz9VBaLNxP2Bnk4XoiqJdmKpe5oMYmMijlFr 88jr1bo71eKGSfC1pKX+jHTggV0rRZVRYzXaB5mjeFPevwaehtBYfMEo1tEMz/4LBMoOiGDMN5xJ6 5eS0A8nnMO7BJ7EQwRYZQT+1jKgsR630lnPrES3A/RUbzf2WLDV4VuQhJUlXbg+y/NnqdfAmoa4nG Y1QBv3OA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYIcD-00000006wNM-3p9h; Tue, 01 Dec 2026 07:49:29 +0000 Received: from casper.infradead.org ([90.155.50.34]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYIcC-00000006wMz-21WI; Tue, 01 Dec 2026 07:49:28 +0000 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=UKDu5LROzGogxtcnIEM7YbywZ95Af2OrXQhEddwrJxo=; b=H0rTZYtgo1UP4o1sk+SR/cvnKL Cj791QXbOUf03POHltMH3GNTuj5bJCy0bgQAhLw73pZ6DKyrQCKIqJ9W3aKlCKSlHLFK61uVFT1KC XiYU/y8nSowRWgAEsOK/KoTEF3dCtPT8TmzelJk3OxhtbLvGkhXvaqyQUU6QTnYVZ40HABRf2KOHe t6qzFkCaUnLYaNQkiZNUM8XPFuUs+E5K6xPcR1nCs0BkQ9VwCA/i5LhDj9vfgWb60OOtcgBTN5PH4 W6GQ6dbiiMdW9uRcq2/8qZthsm5yNvVzsKBJ8eOmH9qK5MlOlcniAPj9pXaQ5yPF6TXC4TegteieH LF6UFswg==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYIWr-0000000DKyf-0rad; Tue, 01 Dec 2026 07:43:57 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 309AD300359; Tue, 01 Dec 2026 08:43:53 +0100 (CET) Date: Tue, 1 Dec 2026 08:43:53 +0100 From: Peter Zijlstra To: Song Liu Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, live-patching@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, bpf@vger.kernel.org, rostedt@goodmis.org, mhiramat@kernel.org, mark.rutland@arm.com, tglx@kernel.org, frederic@kernel.org, paulmck@kernel.org, catalin.marinas@arm.com, will@kernel.org, maddy@linux.ibm.com, mpe@ellerman.id.au, npiggin@gmail.com, chleroy@kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, ojeda@kernel.org, kernel-team@meta.com Subject: Re: [PATCH v3 01/22] x86/paravirt: Mark native pv_ops helpers notrace Message-ID: <20261201074353.GB2883950@noisy.programming.kicks-ass.net> References: <20261201042201.3199928-1-song@kernel.org> <20261201042201.3199928-2-song@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261201042201.3199928-2-song@kernel.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Mon, Nov 30, 2026 at 08:21:40PM -0800, Song Liu wrote: > The native implementations of several pv_ops are static inline functions > in headers. pv_ops stores their address, so with CONFIG_PARAVIRT_XXL the > compiler emits an out-of-line copy of each one, and pv_ops calls go to > that copy. Today these copies are not traced only because the inline > macro implies notrace. > > Some callers of these helpers must not be traced: > restore_processor_state() is notrace and runs during resume, > __switch_to() is __notrace_funcgraph, and arch/x86/kernel/cpu/common.c > and arch/x86/kernel/tsc.c, which call several of them, are built > without -pg. > > Mark these helpers notrace explicitly, like native_write_msr() and > native_write_msr_safe() already are, so they stay untraced if inline no > longer implies notrace. No functional change. I must say.. I hate this with a passion. This is unmaintainable garbage.