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 7F6ED606A332 for ; Fri, 4 Dec 2026 09:01:20 +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=Oh34tDgS; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=muxRBshz 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:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID: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=3vKV4NEjVh+xc9Vx2vfePXZYrQmicSwBmZwmQUVYbjw=; b=Oh34tDgSkuChb0mee4C2iU+1dU bjnAmGuSl/GNc7p2CqlonW3qdZSJVMiuwABBN4D04UkWPPWPzSs4c6OduuV/MCXhp4QmSUEX2k9eb eBU0pC7p86ynM+3T6HQFLLnyCW2tFyFFBmwMpbxEIYLEbblnaK2GEnNVpQRHVUg9hmxaj9GB0/mWW QgkG96VQt8eq3VzKknk4NPcHmFOE8dWDyqA0P3QroJfs86SYLOLYd7DPsSjJ8zy/obTi8+kpwvYlY muZEmNQ/LCpQvlCrdFqgSj3qre43MESgF9PF5X5PBOZ3PsES3CSGYChz4Ev1idswgOZnkk1BSlYlt V3gi2yEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZPAK-0000000HGA2-1YiS; Fri, 04 Dec 2026 09:01:16 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZPAJ-0000000HG9I-2ZRo for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 09:01:15 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id 448584092E; Fri, 4 Dec 2026 09:01:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1EF9D1F00897; Fri, 4 Dec 2026 09:01:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796374875; bh=3vKV4NEjVh+xc9Vx2vfePXZYrQmicSwBmZwmQUVYbjw=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=muxRBshzf0bYrFOsGr9i3mVUBtaqvOfVRJ5bcSBlaQLVNU3wJHtyxr//NpXWpEi7Y Hmnl6AaOF5W0gWZRzYpfYEaiM8HV2TQLrHwzEBp2+kbhtatYZRdZTQlwCQNs8Os8Db nK0wDooVytXIQLkamuDW8SwNpQwZNuSUyxngcvwoDXlqbMeDpQxsK3qD9d5zw4ZtGh XFgUuU1EUde/KDx6UlsyuQK68y3z7SQEhqburNcNPfW0SgxXFN70juRTK4Pbtfy3e0 Wp2NNbN3Hmkgw06HsXBKl3x0KiGwnF564hwL8eFPZC/PdInoPz+5rbyygQh50w94yj dcZ7m92APAm7g== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xZPAG-000000070mL-2aFM; Fri, 04 Dec 2026 09:01:12 +0000 Date: Fri, 04 Dec 2026 09:01:12 +0000 Message-ID: <8633sdxvvr.wl-maz@kernel.org> From: Marc Zyngier To: Steffen Eiden Cc: Oliver Upton , Fuad Tabba , Joey Gouly , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Mark Rutland , Andreas Grapentin , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , David Hildenbrand , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Sven Schnelle , Friedrich Welter , Gautam Gala , Hariharan Mari , Hendrik Brueckner , Nico Boehr , Ulrich Weigand , Arnd Bergmann , Paolo Bonzini , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org Subject: Re: [PATCH v4 06/25] arm64: Prepare headers for sysreg sharing with s390 In-Reply-To: <20261127-sysreg-v4-6-a6318d18aab5@linux.ibm.com> References: <20261127-sysreg-v4-0-a6318d18aab5@linux.ibm.com> <20261127-sysreg-v4-6-a6318d18aab5@linux.ibm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Archived-By: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: seiden@linux.ibm.com, oupton@kernel.org, fuad.tabba@linux.dev, joey.gouly@arm.com, suzuki.poulose@arm.com, yuzenghui@huawei.com, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, gra@linux.ibm.com, borntraeger@linux.ibm.com, frankja@linux.ibm.com, imbrenda@linux.ibm.com, david@kernel.org, hca@linux.ibm.com, gor@linux.ibm.com, agordeev@linux.ibm.com, svens@linux.ibm.com, fritz@linux.ibm.com, ggala@linux.ibm.com, hari55@linux.ibm.com, brueckner@linux.ibm.com, nrb@linux.ibm.com, Ulrich.Weigand@de.ibm.com, arnd@arndb.de, pbonzini@redhat.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false 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=-16.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Fri, 27 Nov 2026 14:22:09 +0000, Steffen Eiden wrote: > > Move the get-spectre-state functions to a convenient location. Guard > GICv5 headers away from s390 for arm_arch_timer.h. > > Co-developed-by: Andreas Grapentin > Signed-off-by: Andreas Grapentin > Signed-off-by: Steffen Eiden > --- > arch/arm64/include/asm/spectre.h | 10 +++++----- > include/kvm/arm_arch_timer.h | 3 +++ > 2 files changed, 8 insertions(+), 5 deletions(-) [...] > diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h > index 80f96ea59f1a..dcffad87b88f 100644 > --- a/include/kvm/arm_arch_timer.h > +++ b/include/kvm/arm_arch_timer.h > @@ -10,7 +10,10 @@ > #include > #include > > +/* no GICv5 for s390 */ > +#ifndef __s390__ > #include > +#endif /* !__s390__ */ This really is the wrong way to do that. There is nothing in this file that remotely requires GICv5 knowledge. If s390 can avoid it, so can arm64. So just get rid of it altogether, as this really looks like a leftover from a reworked patch, and KVM/arm64 still compiles with the hack below. If in the future you face similar issues, do not add this sort of ifdefs. Instead, figure out whether the include is actually necessary, and if it really is, find a way to abstract it away. M. diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h index 80f96ea59f1ae..6d8aa34ba78e7 100644 --- a/include/kvm/arm_arch_timer.h +++ b/include/kvm/arm_arch_timer.h @@ -10,8 +10,6 @@ #include #include -#include - enum kvm_arch_timers { TIMER_PTIMER, TIMER_VTIMER, -- Without deviation from the norm, progress is not possible.