From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65EC72913 for ; Sun, 22 Dec 2024 14:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=96.67.55.147 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734878410; cv=none; b=mYKrgEXhBMjad/vhbYePVcWeARTa6Jgxt+WE0USHNvDhAcriWywORl14f8kD4LKbu+2ikUvFogND3XxQsUZNwv4TkG1FgE7v646xIRLsdSvnvppPH4EzNiXaMfVJP77NursqjS3Fij5I3OEf3g1auFetVMyYiqsCMQ8ntfpj9uU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734878410; c=relaxed/simple; bh=d9yQb+nH8Gv0bu9Y+pWHxo6PDCm2ECv2jh7M7TVse+0=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=eym712tDN0yADew1X3lz1XsKyy5liM6I9JjkuM3MqLF37jl8aWRlf/pO+OksKfBp5SeB6L/iPHtD2wXrHna+0XSYnnl3XcRFY0g4bG3KfN93TkRIIsfRPDaaOA2D6wmTTInyb20Z8BTHaplzlHdmKrtsRcvZHldBhR9XSymYsN4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=surriel.com; spf=pass smtp.mailfrom=shelob.surriel.com; arc=none smtp.client-ip=96.67.55.147 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=surriel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shelob.surriel.com Received: from fangorn.home.surriel.com ([10.0.13.7]) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.97.1) (envelope-from ) id 1tPN7P-000000000s4-0Ub8; Sun, 22 Dec 2024 09:39:43 -0500 Message-ID: <9beef4411b811c08106332b92d2f2776735af7c3.camel@surriel.com> Subject: Re: [PATCH 02/10] x86,tlb: get INVLPGB count max from CPUID From: Rik van Riel To: Borislav Petkov , x86@kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, dave.hansen@linux.intel.com, luto@kernel.org, peterz@infradead.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, akpm@linux-foundation.org Date: Sun, 22 Dec 2024 09:39:42 -0500 In-Reply-To: References: <20241222040717.3096835-1-riel@surriel.com> <20241222040717.3096835-3-riel@surriel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.54.1 (3.54.1-1.fc41) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Sender: riel@surriel.com On Sun, 2024-12-22 at 12:46 +0100, Borislav Petkov wrote: > On December 22, 2024 5:06:34 AM GMT+01:00, Rik van Riel > wrote: > > The CPU advertises the maximum number of pages that can be shot > > down > > with one INVLPGB instruction in the CPUID data. > >=20 > > Save that information for later use. >=20 > Definitely not replicate a single datum into every CPU's descriptor. >=20 Oops. I was under the impression this was only done for the boot CPU. I'll turn it into a global variable. --=20 All Rights Reversed.