Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp333183lqp; Thu, 4 Apr 2024 14:55:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAIb82Veb0YkIKm6gcKKGOFc5e6YLiLLPfvANtseo3YwtlLDt2nXMT1v39hOkpFsYaMlnpnBS4E1hG1C9WpYugDBYEss9tPMQKYVQ0oA== X-Google-Smtp-Source: AGHT+IFZX/3dH7dthFP18ACzuFLtbobPOQV3DPrYo2KSwfJnmdirfqd2zjdhiw1LWy9Iw0GJ/oJc X-Received: by 2002:a05:6a00:181b:b0:6e6:b4f3:19dc with SMTP id y27-20020a056a00181b00b006e6b4f319dcmr1043129pfa.7.1712267747876; Thu, 04 Apr 2024 14:55:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712267747; cv=pass; d=google.com; s=arc-20160816; b=Q54QwP1f44/d5Q8lbiZmOqZ41V8FdndDHCGaQjdoORGpVewf8Q5QLKvh90+QZKGKvi 6FVKywt1UBoNMfLO2suCMGvRx/neeIpVZ0+9vTVa1RXRGJ596QvTCFAQhnvWxL2qa5dw crUqkGDxaw8jvv8osoiEJKk9ck7ZLFmAcor6sc6M2h/S6gjy1cub4WZv6OOhk2kwtHkV IYkUdj992L4x6to1j9ErPrrmvpdaYklNmziFa+2cUBH5TO366Pxs4530QMx5oPzFRjjW JZTfzcXghwKQ5fP8fIgJzTCOh/A0k2Gn7JAcm2WVnQYXjpe5k1dbexIGH4KIuqwL44wI 5VLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=mxIVyv7cNyTq2vNYoeJOtNz8nXPv634GBs939JAmlHY=; fh=ia3bjJWL+0GGGEcA2ItfN3gSt4Evk3yRDIi2a/5E/nY=; b=zs7nE10JqBJzo5X1ivKz4GFezIPVdAgmUKtYPUigdBgUAmRj3Nr3FNqvLhl5I3Azjg 6Fl8dpPcjAkgLxymqqUnqjBSYSFi1UbVjqvae3lKCwCG0oVSFHQh5gE008wiYsPleDdA u4uSplN7xXUKNbC7TrvvBS/4cMxPTazl2RVjog4DIhzKAUDX2/YjSiWga2Tj+hQ7B5kZ zE6bukLP+jQrm1cRL5cWwCwUQE4Sn+WvejpomM472w1DjRCsjF49UrsZ6ISAGyT7gVe4 issm/BsAsUDKET5w76Pntq/MYWV4noExy9TowEg/2OAoxP0iibN5hvVfSXKdoA0c+/PS md3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=sVeD7uVu; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-132175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i190-20020a636dc7000000b005dc957fe128si193283pgc.74.2024.04.04.14.55.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 14:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=sVeD7uVu; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-132175-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132175-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5CD3BB213AB for ; Thu, 4 Apr 2024 21:55:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CEFA13C3D1; Thu, 4 Apr 2024 21:55:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="sVeD7uVu" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 198F7131BDB for ; Thu, 4 Apr 2024 21:55:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712267724; cv=none; b=fSUJECWUUubck6gQc/6hwvrJBM3f5e0R2vtyLDKNbkak+s/PL9yGXBQr5SFIN4QldC7CMuFkdvlgYvphDh6sWFM1Wse479s1Ku5BCMpPLJGEyUakO855ZFR1tycp2okMiy/xCW9bI3Mf90JB0hB/yaNhpH2HcDktbUWayWaXlMg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712267724; c=relaxed/simple; bh=IieES/8bKEnHvAQMRqX27a8bScdjVFPXGYhKImvWWFc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=S+Ciu2Mq32yqe0n3RxxSt3Ys+/ztNifbO1R2Jx+jKJMTtwsSDNtDs/NDQ7Dgs8zEdCU1kUtmCIl+ovnHk5hYml0hRZpuG++VLflDQS3cHh4Wqq4vpK9nqvSRYYrdoWxwD8S/Qmql2TFJOJEWsrNYGNBwQGbk2fKlc53k9JCoRoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=sVeD7uVu; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-61504a34400so24742657b3.0 for ; Thu, 04 Apr 2024 14:55:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1712267722; x=1712872522; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=mxIVyv7cNyTq2vNYoeJOtNz8nXPv634GBs939JAmlHY=; b=sVeD7uVuJbyoexOu57Tvec7+Bz+LNkUFJg/5gFSrkeqToA4ljJGRbruwoKtVj6abIS PdQ6mXQVOY70NHIOSHqG0KMnI0LSm9/9XyUlZUjZ9jk2MC+OdTNPC4oOI989d3YZWr1g o6Z/Zx2OnMA/hiKDez6tiwjFr6O1907HGXXVmHa2RFHCXVf4PbEOahsIkVb3noPE8uxC YRcwiQ/ZsDUZjeE/JodFsxemppGggCDp/70qpUqHC+RwueuAMVAHZG/W1UPUbSzBYf/Y 8THXTVyzS5VAVhyZo+sG/lzCcmROHP56OXNfU3fqQ4lTlgmfzQvH5VmGxIFeXt3q5yvB 00Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712267722; x=1712872522; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mxIVyv7cNyTq2vNYoeJOtNz8nXPv634GBs939JAmlHY=; b=OOuxFdfPtbOR/PSCWIXpFbUnTKs7zyPIdK3xQhRZiELPZYqE3HUOr/3mpmjIJ9thHr XS+1G9cX3dsW9GppxIqk68c9DjusshRQTTNQfQtQjUtzQKlDioIDHb8tDG+3tAbLsgPh COLrDeD0Usk7EByKdbK8azMEBln0FgLp0deM7ebau/gw+vvy5SsJ6/3UC/xjkQGW65v4 7s8JwRGuKbjdpaydygc6bYmi8DCjI1ASyKFm6vk4H9IZXUphcK6m6HtsZa7uaYK3df8S KZGWCEzsJ4KPk0gFIi65gD3PAMdal9oQ8scJJij7q53xwGnKz169r5g47T4l0IIOY7d8 bsqg== X-Forwarded-Encrypted: i=1; AJvYcCUSsCSodho5E9h1HVmrAF96nVr1WzEYQMSBWVluoPeDrOfkMIzPaCgBaSMqGecIH1CKDC0BAPChiM2NS/kEbPjiYiK1RC8nq/2TaXFX X-Gm-Message-State: AOJu0YxUM8DT/UnFKf+qBtx2qUjAbGqPTuIFRbx5ExdYnQyyzL+b0qqJ hOmdQvmShNvqcogkbuaFQL70VI8YUsEiE0WaallDaWkEMnxe+3r8rWoLcmy0fGlbdOrW/rWpWhA Ekw== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:690c:c94:b0:615:ca8:6058 with SMTP id cm20-20020a05690c0c9400b006150ca86058mr187971ywb.5.1712267722107; Thu, 04 Apr 2024 14:55:22 -0700 (PDT) Date: Thu, 4 Apr 2024 14:55:20 -0700 In-Reply-To: <8ae52273-7b79-46b7-9cd5-2a0c401311c3@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240401185451.6897208962d3fc47a12ffb5a@otheo.eu> <20240401185712.a80deeb2fddeded0ad42cc04@otheo.eu> <8ee463af-fdbf-4514-bb6e-bf2fd61fbc06@intel.com> <20240402192314.a9b4e05637444314f47557e4@otheo.eu> <20240403175407.f81ebc5cc3300ffa0c39f597@otheo.eu> <7db8d0a8-c668-44be-a348-58120a97fc2b@intel.com> <8ae52273-7b79-46b7-9cd5-2a0c401311c3@intel.com> Message-ID: Subject: Re: [PATCH 1/1] x86/mm/pae: Align up pteval_t, pmdval_t and pudval_t to avoid split locks From: Sean Christopherson To: Dave Hansen Cc: Javier Pello , linux-kernel@vger.kernel.org, x86@kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Content-Type: text/plain; charset="us-ascii" On Thu, Apr 04, 2024, Dave Hansen wrote: > On 4/4/24 08:26, Sean Christopherson wrote: > > In other words, practically speaking this isn't about supporting a new hardware > > feature on 32-bit kernels, it's about preserving performance in real world > > scenarios when running 32-bit kernels on new hardware. > > Realistically, most of the 32-bit kernels in the world are going to be > *OLD* distros, right? Old CentOS/RHEL/SLES kernels from before the > kernel had split lock detection, or split lock fixes. Those trip over > VMM split lock detection now, and presumably will forever. > > I suspect new CentOS/RHEL/SLES kernels that have split lock detection > all happened after 32-bit support was dropped from those distros. > > I think that basically leaves Debian. Someone would need to: > > 1. Make a *new* 32-bit Debian distro install (or one of the other > less common distros that still do 32-bit) > 2. Run it on hardware with split lock detection > 3. On a VMM that enables split lock detection > 4. Stay close enough to mainline to get split lock fixes (like from > this thread) > 5. Care about performance, despite *ACTIVELY* choosing a 32-bit distro > on 64-bit hardware in 2024 > > Those steps are certainly possible. I'm just not sure how much trouble > we want to go to in 2024 to support people that choose new 32-bit > distros and desire performance. I'm worried about a scenario where the throttling is so bad that it's not a perf issue, but a functional issue ("performance" was a bad choice of word). I do agree that the probability of this being a real problem is super low, but at the same time it doesn't seem too onerous to clean up. And in the unlikely case that this does cause a problem, the pain on our end can be quite high. > It feels to me to be approaching "I want a pony" territory. > > Or am I just lacking empathy today? :) Nah, I'm probably asking for a pony, but AFAICT it's a pretty cheap pony.