Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5929973rdb; Thu, 14 Dec 2023 04:02:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHy9hunjXpC1zAXQw1mD7149vWDKkKDaIfCWPtmIU2gLZbUaL6mJ5/AmyEJqzUBWBK8bocX X-Received: by 2002:a05:6e02:1d8b:b0:35d:5995:9042 with SMTP id h11-20020a056e021d8b00b0035d59959042mr7746290ila.53.1702555330998; Thu, 14 Dec 2023 04:02:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702555330; cv=none; d=google.com; s=arc-20160816; b=VIdr+RSaS9snq/d84E9ePB8tq3qbhWLUfEQKKHNCGbQCxxdAYNI+b2mEzrbSmx2Xxu r3JB/22qTav8jnI3bgJb09RxuyRIGWGt13Ci0DkNBm6f91DWIz+syFrA1ykBvK4OhJ9y IGTSLzqP4QIdx/EJHTMF/8KhE0gu5JGlbh+Ud09HQDdAu7PijBfGMuQ2Wxm0HtCQWATe w2+KV00fVqgn1Xfs4TqARkO5Z6Dyg8BClc2WwdY0AbsU3LpLUwPM6jgCj+sUo9rRF76o eOIVLRrc1NvnrsGP0uOzpgC3LFbQwUOvVeqLS7/zZgxn3Tc3Sdi+6+Blu3imEm5WdcAt 3ARQ== 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:feedback-id :dkim-signature:dkim-signature; bh=1B4ThV600uQJHMyzGQwCFJGfVJ0JM9hKUZygdHA8jvY=; fh=CU+xbaWqqDqGoVz2eGiDdrFOiiAf7yHnw6rZaNvrc48=; b=cGfSwZaLiYLzJD39HUGzYsYtuvs4Qg/75y3RKWRHPE4gRSMRHkiRH3KkBEL+mq5nPy +GbVF7kDMDPa65kKoZq5m1pbo4vObJafLcWYlCMnnBuOchIdvVm4KzbcT0YkM/c78od0 erjH4DVxC1M8rspiblt3P/dIa9sxTPUCwvcyXsjjnuo+dqb5wsZ2pIEZCSOJHRYw55RG u9Dl+ZwfHT0vuuHH4oetgqzCoYpkuUxtZ1icPozZMGWJjyDgRpXMKR3BTz08LF2TVJAq hHmBzIBBYK4s33n13SXEc8dFrRGiR7AA2v7pF06Zc3jETa406femt6pZw8vgxc0aC/SV iHpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alyssa.is header.s=fm3 header.b=QxG9+FzV; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=XI87XLh3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id c37-20020a634e25000000b005c645e1ff20si10962133pgb.73.2023.12.14.04.02.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 04:02:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@alyssa.is header.s=fm3 header.b=QxG9+FzV; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=XI87XLh3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 286008025E5D; Thu, 14 Dec 2023 04:01:20 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1572878AbjLNMBK (ORCPT + 99 others); Thu, 14 Dec 2023 07:01:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1444191AbjLNMBJ (ORCPT ); Thu, 14 Dec 2023 07:01:09 -0500 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48100B7 for ; Thu, 14 Dec 2023 04:01:13 -0800 (PST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id B10D45C0166; Thu, 14 Dec 2023 07:01:12 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 14 Dec 2023 07:01:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1702555272; x=1702641672; bh=1B4ThV600u QJHMyzGQwCFJGfVJ0JM9hKUZygdHA8jvY=; b=QxG9+FzVUnxG1xQHfwDHotyTDI 4WbBVE/grZ3na48o2hQurbCrzTLdLS0nfAIGugLqe6tCH7Hz/K3xdTR8plhIgysM CLshuII9GWg678c62IkMQLgbadvrq7dnYnydAKvDWWkDnRG1moLH9bpVVY+xD1NW snK4pu3GdOqcouXMbW544fGvG+Jm3DpeX3a1XSmpVXy88sg6a7YntKyETOkWJzh7 +d3Z/G1UB1ZnoQ/lBey6pi+Tu2H+cfEGa7Kg10D3P+/KTwK8UPDQzWoYri2vJ6b1 KJcFt8pME5p21PqelvRaowAtDqkUNbAMaewSQzuSaXNB6qwDkgcWwk/VcChQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1702555272; x=1702641672; bh=1B4ThV600uQJHMyzGQwCFJGfVJ0J M9hKUZygdHA8jvY=; b=XI87XLh3jv1ua4maFylcDpTJDEwnanYfQEz4juby/+ED RZ6sR87y+wVy4Hfq9F8ECXMwwguW2j+aZnR/tHlpsREsuH7FoLw2bNGhKj8kmjfK iVHJd1CvlVl3R98KlEaD5R+QFprvtCnY7bnw6lP2bhIYjVADVaIsQis+1fkMObAo TXxsUzlG1K/mJTS6tq+UUo1yzpvKEfUpxozwqrSMHvxdjWsg3KNH3hgmHaES9EzQ Sp5A7XWdU+GGBJtTXz5HS3NraQLDivuImFdTd9Ww2TsaNQwAvHaHs8MX9s8/liIv Skya9q/KlusOCoYhYh2cniP9AtDEAQg018CmsLHvKA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudelledgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtsfertddtvdenucfhrhhomheptehlhihs shgrucftohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnheptd ejueetkeehfeeuleeugfevieffkefhteefiedvfeehuefhjeegvdeiffeihfeinecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihsh hsrgdrihhs X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Dec 2023 07:01:10 -0500 (EST) Received: by mbp.qyliss.net (Postfix, from userid 1000) id CA06894F7; Thu, 14 Dec 2023 13:01:09 +0100 (CET) Date: Thu, 14 Dec 2023 13:01:09 +0100 From: Alyssa Ross To: Arnd Bergmann Cc: Juergen Gross , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Boris Ostrovsky , "H. Peter Anvin" , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] x86/xen: add CPU dependencies for 32-bit build Message-ID: References: <20231204084722.3789473-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bjargecwevzoc6i5" Content-Disposition: inline In-Reply-To: <20231204084722.3789473-1-arnd@kernel.org> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Dec 2023 04:01:20 -0800 (PST) --bjargecwevzoc6i5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Dec 04, 2023 at 09:47:01AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Xen only supports modern CPUs even when running a 32-bit kernel, and it now > requires a kernel built for a 64 byte (or larger) cache line: > > In file included from : > In function 'xen_vcpu_setup', > inlined from 'xen_vcpu_setup_restore' at arch/x86/xen/enlighten.c:111:3, > inlined from 'xen_vcpu_restore' at arch/x86/xen/enlighten.c:141:3: > include/linux/compiler_types.h:435:45: error: call to '__compiletime_assert_287' declared with attribute error: BUILD_BUG_ON failed: sizeof(*vcpup) > SMP_CACHE_BYTES > arch/x86/xen/enlighten.c:166:9: note: in expansion of macro 'BUILD_BUG_ON' > 166 | BUILD_BUG_ON(sizeof(*vcpup) > SMP_CACHE_BYTES); > | ^~~~~~~~~~~~ > > Enforce the dependency with a whitelist of CPU configurations. In normal > distro kernels, CONFIG_X86_GENERIC is enabled, and this works fine. When this > is not set, still allow Xen to be built on kernels that target a 64-bit > capable CPU. > > Fixes: db2832309a82 ("x86/xen: fix percpu vcpu_info allocation") > Signed-off-by: Arnd Bergmann > --- This fixes 32-bit distro kernel builds in Nixpkgs, which regressed with a recent stable kernel update. Thanks! Tested-by: Alyssa Ross > arch/x86/xen/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig > index 9b1ec5d8c99c..a65fc2ae15b4 100644 > --- a/arch/x86/xen/Kconfig > +++ b/arch/x86/xen/Kconfig > @@ -9,6 +9,7 @@ config XEN > select PARAVIRT_CLOCK > select X86_HV_CALLBACK_VECTOR > depends on X86_64 || (X86_32 && X86_PAE) > + depends on X86_64 || (X86_GENERIC || MPENTIUM4 || MCORE2 || MATOM || MK8) > depends on X86_LOCAL_APIC && X86_TSC > help > This is the Linux Xen port. Enabling this will allow the > -- > 2.39.2 > --bjargecwevzoc6i5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmV67oEACgkQ+dvtSFmy ccAnEw//dm9vi/PyxEvDgewLQcikutEaQ4Mr/mlXW1mcleyv2baqH09M6PSn/g4D GeZIGzxLMK54gwgw0b+zqgXD1r7x2A27qQLsFOpEFM+LE3LcejJcULczHvznQ1IX 3kFLjGWh0zzFPrQYZ/CST9RtP0w57LF0QHgZ8Mc4Am4n5+irPeLX8/K14LiK//6i 79L1E/3N4w3L3TG2QP/6KinYgjhDNMJlzUgclSv6etMkZ35FRV+vAeZbh8porE/j vkba4GuxjuHiBXGe4oKBDjtNJJyxVbEJzW+CHguwxtYimxq1cuwQNBhZpDZ5xjVn 5n53mxAeOX0IwXUoiQfhVUJ4OIidpUiDn9+9OCZPk/jDGCh0QbGkRxNTXw1iywSJ iQ3EX3Iron/n1wwP/cX3ntCkJZkQxbSNwqXJ0OZtxqTeOcBJKqFibiytCGAPuzaf iXDiowlss71+d005qC7+RmCVr2lj81B60OIungWzBUfN606XLrTLZk7u5Q2Y/0Md nDPx123HMbHxon+2aiTsKHJwQ6gcebUGNVPKXv5zTHyLBS6Nm4ngWTrAVCU1srDg K01jNFSd2vFGYXDpbxHF8nDczQ207UxHv80BYcbKT9UejszhTY8Bv7ApKsDpU5Ax 1vs0Q92y0gbzq56sB+v30doKgMH5Afkw5+M+HBT1ZtDdiBGJ/O8= =hV3v -----END PGP SIGNATURE----- --bjargecwevzoc6i5--