From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 49CD3CA1016 for ; Thu, 11 Sep 2025 07:48:55 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4cMqSP6848z2xnh; Thu, 11 Sep 2025 17:48:53 +1000 (AEST) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2001:8b0:10b:1236::1" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1757576933; cv=none; b=QB7kv/QXBhig97u20TctUDjTo9Ds91mVioCQrhP1tZm23ZsEVmZmIr7Mvg2fLbg+g1lqtC7zh9baeb0KnFE5CRW0ZhbZl0BeLKVfUfl6O1VHj+awO34zDykqN1PuUzxj4x0FogGHbRBFkSeMhQjdwxUdU6ql+S1GPIp0YkLm+3fUFt3z10bUK+eGlUdfc+j9Wcy5JN/fo0oZA2WnpLf2Ta/Fdg2YJ2uzWigy8gZIYjJHpWPIQyf7qQNrUtOVcp6aYD8hQSCn1aigSM1+1TNp0PzJNGDXwa9oS56GFUnVeSyuwcjApgelNG21Y/I1h46cI4LyZRGYXKdfOUgWr8i2dw== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1757576933; c=relaxed/relaxed; bh=U+zkD5dacXBFakf/sW3Py81BzX7lYGPL/ab+J9kqcdg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EW5iTjQocNpdcYltNesl3ePQDvDEZs607/NEgY4hiPzsYhqwMDHHdTGdUkJA/RcW2j7KjtP3KjRkeGHUP0uzHok7vMvGRnJ9kg77xo7L40an0F1NLY85EhhKxQxSYPM/ZHZaZrZmfOrnqKvGGyCrKO4U1EUFCz8toLijpt3zx49RYF6iQ/uIbH6DHp0+xNhHHpiziDEwzj5lEwMjFCUTOL7FsCsTxTk6/wTTBcbeKHGKAfwTQ4kDU22+jwPeU6r/ZhoCCOll+E8OlX67Wida3UHe6IlEkHYa2WDtQNqa6pGL357lNpg5yfXeSJmDwyR7FcQw+Bu1p7jlaJsOBIZdZQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none (client-ip=2001:8b0:10b:1236::1; helo=casper.infradead.org; envelope-from=peterz@infradead.org; receiver=lists.ozlabs.org) smtp.mailfrom=infradead.org Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1236::1; helo=casper.infradead.org; envelope-from=peterz@infradead.org; receiver=lists.ozlabs.org) Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4cMqSH16Qkz2xnM for ; Thu, 11 Sep 2025 17:48:45 +1000 (AEST) 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=U+zkD5dacXBFakf/sW3Py81BzX7lYGPL/ab+J9kqcdg=; b=rVrDSFK0bpnhi1r1s83os8o7QQ XayC14Rrw5fJaPANeMNniOrj8N2qlmXZE8oUJBQvG5kSAFrlNf0KMvYQRq0gk7u/1f3wItoWc/zSx gMRY+yKQ4sBjLvyySadOCkXFheZQ+DVX5dcy+Kawt4/VDIAADK8mtsP0tEVBlVeM6n5nliW9J5by5 qcxvNNuHTHH3MFrkCcD3e1F5nHscsfjsTcYJksi3IX2HuJ8nFMSKL67BI8jxt/ELGL2WX0z4ME16L /SA7AkX24vu99JNGByq6XvVm5ZTsSUxhQ+ASMeIgwxmdEKvg7dsn3+Ahm1ViJVrCJYH4ibFHmaxtg rAsWgZlg==; 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.98.2 #2 (Red Hat Linux)) id 1uwc2T-00000006tc7-2uQY; Thu, 11 Sep 2025 07:48:17 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 455AE3002EB; Thu, 11 Sep 2025 09:48:17 +0200 (CEST) Date: Thu, 11 Sep 2025 09:48:17 +0200 From: Peter Zijlstra To: Juergen Gross Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-hyperv@vger.kernel.org, virtualization@lists.linux.dev, loongarch@lists.linux.dev, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, kvm@vger.kernel.org, Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Will Deacon , Boqun Feng , Waiman Long , Jiri Kosina , Josh Poimboeuf , Pawan Gupta , Boris Ostrovsky , xen-devel@lists.xenproject.org, Ajay Kaher , Alexey Makhalov , Broadcom internal kernel review list , Russell King , Catalin Marinas , Huacai Chen , WANG Xuerui , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , linux-arm-kernel@lists.infradead.org, Paolo Bonzini , Vitaly Kuznetsov , Stefano Stabellini , Oleksandr Tyshchenko , Daniel Lezcano Subject: Re: [PATCH 00/14] paravirt: cleanup and reorg Message-ID: <20250911074817.GX3245006@noisy.programming.kicks-ass.net> References: <20250911063433.13783-1-jgross@suse.com> X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250911063433.13783-1-jgross@suse.com> On Thu, Sep 11, 2025 at 08:34:19AM +0200, Juergen Gross wrote: > Some cleanups and reorg of paravirt code and headers: > > - The first 2 patches should be not controversial at all, as they > remove just some no longer needed #include and struct forward > declarations. > > - The 3rd patch is removing CONFIG_PARAVIRT_DEBUG, which IMO has > no real value, as it just changes a crash to a BUG() (the stack > trace will basically be the same). As the maintainer of the main > paravirt user (Xen) I have never seen this crash/BUG() to happen. > > - The 4th patch is just a movement of code. > > - I don't know for what reason asm/paravirt_api_clock.h was added, > as all archs supporting it do it exactly in the same way. Patch > 5 is removing it. > > - Patches 6-12 are streamlining the paravirt clock interfaces by > using a common implementation across architectures where possible > and by moving the related code into common sched code, as this is > where it should live. > > - Patches 13+14 are more like RFC material: patch 13 is doing some > preparation work to enable patch 14 to move all spinlock related > paravirt functions into qspinlock.h. If this approach is accepted, > I'd like to continue with this work by moving most (or all?) > paravirt functions from paravirt.h into the headers where their > native counterparts are defined. This is meant to keep the native > and paravirt function definitions together in one place and > hopefully to be able to reduce the include hell with paravirt. > > Juergen Gross (14): > x86/paravirt: remove not needed includes of paravirt.h > x86/paravirt: remove some unneeded struct declarations > x86/paravirt: remove PARAVIRT_DEBUG config option > x86/paravirt: move thunk macros to paravirt_types.h > paravirt: remove asm/paravirt_api_clock.h > sched: move clock related paravirt code to kernel/sched > arm/paravirt: use common code for paravirt_steal_clock() > arm64/paravirt: use common code for paravirt_steal_clock() > loongarch/paravirt: use common code for paravirt_steal_clock() > riscv/paravirt: use common code for paravirt_steal_clock() > x86/paravirt: use common code for paravirt_steal_clock() > x86/paravirt: move paravirt_sched_clock() related code into tsc.c > x86/paravirt: allow pv-calls outside paravirt.h > x86/pvlocks: move paravirt spinlock functions into qspinlock.h With the note that tip typically likes a capital after the prefix, like: x86/paravirt: Remove unneeded includes of paravirt.h For 1-12: Acked-by: Peter Zijlstra (Intel) Now, as to the last two, I'm not sure. Leaking those macros out of PV isn't particularly nice, then again, not the end of the world either. Just not sure.