Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796374875; b=FBp2hsm+HK88vHHBD559dndHW0pFOuFpqs7b94A6xl2ImkNwTObHYG7hSyEgFNrFoMZL MmIIvvdreWTM6lm6Fdf+mYdGb5XH8JDrK839IA5RpvFJ+cUQJhbCZOrVFILt9KODQzr54 St1HO2jms96J9HJhXkDDjH3owha+lmWbwTy+8e9+e8jX1w+UNPtUBldCftR2/4Wrksl48 IQ64B2/cexfvElSaTOURgt0zV6ACMVnh1kNKvTENk3fv2XX0ZMfsBqeVF2p5DnOI83ALo STrYAZ9BmNEqzGm5/Nyr6LsSqouWYLVfTUsghFe6DM+ev5PpVboMn104JtQfix0lA2g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796374875; h=Received:DKIM-Signature:Received:Date:Message-ID:From:To:Cc:Subject: In-Reply-To:References:User-Agent:MIME-Version:Content-Type: X-SA-Exim-Connect-IP:X-SA-Exim-Rcpt-To:X-SA-Exim-Mail-From: X-SA-Exim-Scanned; bh=3vKV4NEjVh+xc9Vx2vfePXZYrQmicSwBmZwmQUVYbjw=; b=lpSTnL47nRA4Rk1jDLcT06Jg9sphlmuRAWQWbP1OhVTMWK9r7YChnA9FGgH4Fl9CKfji ClXPu5QxiSDte8vvc0FsEioAZA3K6orLq/0FgLGhWs++Z4qCzA2fH+x4GTQ+YHV9NZz5J bgD5MQ5Y6JKTBf3KXoBxbKGo1iImph2QPcDq6lGWzlBXxNN/cQ91eM6wCBdOpeuX9qOnm 0wl4Xw56paGb67RCjbDExYIXoL/GD4qvuY/IeYs1H6Kj1sxKJelAZmlGutB2J2lTorBlg e11v3kBk7t5BJom7/Ndtp5l7AUjBtGZ8Loo38oYuoWrRgkIp04sM7C+clF7cONguUkQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=muxRBshz; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B025606A334; Fri, 4 Dec 2026 09:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=muxRBshz 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-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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.