Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp210599rdh; Tue, 13 Feb 2024 14:35:09 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXKmI1lQp+zDDP6zzh9M7XBOwzQ7l+Y7Iz3WU7DxnuTfrLk829s24v6qzAUIF3zDZgq/DCs5tdhZ5TMl/8xPrLXVopI5Q2dwfsMugy2dA== X-Google-Smtp-Source: AGHT+IEFhOT5kO3YWqcSPa8Fw5pW9y0O7y0Rf4+Hxpy4Qbf6ZotK561M4VNS/EPTOYsa7PJEOPtF X-Received: by 2002:a05:6a21:350f:b0:19e:a7c2:eee0 with SMTP id zc15-20020a056a21350f00b0019ea7c2eee0mr1166930pzb.8.1707863709191; Tue, 13 Feb 2024 14:35:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707863709; cv=pass; d=google.com; s=arc-20160816; b=Uj70vgsOPlczG9t754vD8fS1TntL43AI2J3PH/oUZ2WKdvRmbi5E6+i+hb6fxD56vu iEu1WG45gCKaBdtbb4eQ80x4JMMZ4ooTg4vbohhgMe77OGb63b5HDsiJuobuXr4cPcpo nPDLR6lusEJRsiPDBWEYVyZUAUrSe5pbg22ZIMkyPlDc96+RbUOAi0Kps+Ruu8FBLU6Q 8URI/6R/Hfnj8daUux+Fm8PfUs0Rm1uSiWdTSP6+swNWTHRdI324qb2UXLMpqI8QShEh bbIED3IZky54rPKvtxK4qdbHGA2H8TxR3YwLxsh4hV3S0PxEAdYPzTNMFJbwXvtN0v82 lWIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=0zN8IxTd9DLdZiajIVz77TiDGZaCMDEd7tzeTNMH5Qo=; fh=+yCRt/fZlQrVF+9H25ZAOkLt6OwN1hUBVqKZRHM29ko=; b=tA6VdW5RVpMifPLviUQcvRLOQzfu14zyGd4V/5A0xoIRctref2W9XOoNYqhdicYN71 7ZFOZO0uiiJkk+cMNkiTn4lYiHbggoT3qeZFv70ic1aG0QeujyFTMgIzGbrNfljjsnWB GQgzn/+4f4dknoB02GpBsz6xKXcB1Fi3tJWb5Vrle2OdeNDBW3TvysENCGa12fE7m7MM 7NcNrF0PbFkBcjhI8vwGre4F4QksoeYVm5JloVYknPJaRuzU8Xe0Dj+wJ0dGbwSYoeCE /lw3ee1wP0TFax0BFTIfk2XNNgNePHp6mpM4a72mUdUcPewgVWy9iOwE95A4Dt0qch2X s7Bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WMI5rw7P; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-64454-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64454-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=2; AJvYcCW/cItE7KmCir2vw5gyHE3AAdUCbxp8ffxKAT2B6RpyXloDaRmEZB54mpzfNcOA1FGRCHmHcUn28bnXQYICLgwybopBVGMQxC0ZOKBykw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l22-20020a656816000000b005d73172aca1si2693916pgt.861.2024.02.13.14.35.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 14:35:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64454-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WMI5rw7P; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-64454-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64454-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 308CC2924C6 for ; Tue, 13 Feb 2024 22:25:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3578662169; Tue, 13 Feb 2024 22:25:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WMI5rw7P" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 E10016215F for ; Tue, 13 Feb 2024 22:25:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707863135; cv=none; b=DIw2axbQUNl0eQEhxtCgUcHwhK181JayFwbs17mrbcvL1lCgwLIDg/2KQe3Zb5Hjw9v7gzW+VdL9X31K4qtANusmSye/T7bLeI5G/rJHa7YppItxqjk9ZrtxMIYUYO5DxBJCKgHsmWILkd/dnTKiazn/bYeXO8E7Pf1OlW777fo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707863135; c=relaxed/simple; bh=SI3shktrX4HINcYJVC974f91I6xkc56CaOZn4QD2LpY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=sauqQQEbHZF4FPaupXbt8dBjluqwYd2/L0NUcK7qehDgSNoYPFKLCl6ClssR9opFQcI3ppFzOJfmHjYc4jfKyAZFUuBvakID5eJ5y0JEsGWH8AJynNh3BhSLNxS65/s9RQgF826N5/j9nnRwDqpttf4ccjoxiiMMSCXtmQFrV0I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=WMI5rw7P; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707863132; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0zN8IxTd9DLdZiajIVz77TiDGZaCMDEd7tzeTNMH5Qo=; b=WMI5rw7Pyj5TBt3GtUd8TsRW4kd/XG7/JJxv1Nl2GEasmKFJt6KoonR0vHrZ9AYvdAnTxd CZFHYP+zy4aPGqBMdYEslciQscXxn2GkQIxpgX+ViJCXXykfJTog2RT//DcmgYuhCFld7k D/n9SPagQ4ivniKoT8gezHAeMlMkXLI= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-507-xVGVW0n3O9SVJw1zVNSirA-1; Tue, 13 Feb 2024 17:25:31 -0500 X-MC-Unique: xVGVW0n3O9SVJw1zVNSirA-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-33b376cc518so2735704f8f.0 for ; Tue, 13 Feb 2024 14:25:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707863130; x=1708467930; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0zN8IxTd9DLdZiajIVz77TiDGZaCMDEd7tzeTNMH5Qo=; b=el5HQDUDDNxmgdxFVzlXcfqYVQsZB8ufaXtI8FraREfqigfwQfJFTw9jPm3tpyAG+0 CIag1V6j8eDUtBzRKFq65HbnlqDBjc8IaCT7FJt5KMLtJUJZGjnSA7zeIe+jgd7kXvXV vbWJR1Uj6+3GU5q23pS/NOIhmeCCUaPo+oODeGFdQV4neZniW4afwkYWO8EqzLy3Dzt/ wSKldPT1slyuMTdzC6gOzIycr8Ht1I7E+hStI58wy+1DPtIgnna5AP17TODtVgdFiG60 Jhw4cUnnizKWYRfho7ykNRplVAIhx/Ml2aMUTieqV/vd0cCUaL0wD7+/VF1WQllA5orT W4iQ== X-Gm-Message-State: AOJu0YxPYqy0Es9sL36/oJYP1tRyNYbn9wUJw845C8YIzUy2ISSsNdvz YyQM1Eu9KLUDDhao9ZkPUjJCrRXB09iGf3f++tjlXt2zoNVv8jlxOIGVnaEW4hXQbdLlNnZMvT7 i4BdARFR69aH7XEPQPHHlShaHqv0CtAdae05wuHQiAEle3qQBeOGAgH17To+J+IdknLnmUTjaPG wZCDlmiFq+x7Gjsb45aYLs/yMAnKn/h11g6BTP X-Received: by 2002:a5d:62cc:0:b0:33c:e2b0:600e with SMTP id o12-20020a5d62cc000000b0033ce2b0600emr457124wrv.32.1707863130149; Tue, 13 Feb 2024 14:25:30 -0800 (PST) X-Received: by 2002:a5d:62cc:0:b0:33c:e2b0:600e with SMTP id o12-20020a5d62cc000000b0033ce2b0600emr457105wrv.32.1707863129799; Tue, 13 Feb 2024 14:25:29 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240131230902.1867092-1-pbonzini@redhat.com> <2b5e6d68-007e-48bd-be61-9a354be2ccbf@intel.com> In-Reply-To: From: Paolo Bonzini Date: Tue, 13 Feb 2024 23:25:17 +0100 Message-ID: Subject: Re: [PATCH v2 0/2] x86/cpu: fix invalid MTRR mask values for SEV or TME To: Dave Hansen Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Zixi Chen , Adam Dunlap , "Kirill A . Shutemov" , Xiaoyao Li , Kai Huang , Dave Hansen , Thomas Gleixner , Ingo Molnar , x86@kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2024 at 11:02=E2=80=AFPM Dave Hansen wrote: > > On 2/13/24 07:45, Paolo Bonzini wrote: > > Ping, either for applying the original patches or for guidance on how > > to proceed. > > Gah, all of the gunk that get_cpu_address_sizes() touches are out of > control. > > They (phys/virt_bits and clflush) need to get consolidated back to a > single copy that gets set up *once* in early boot and then read by > everyone else. > > I've got a series to do that, but it's got its tentacles > in quite a few places. They're not great backporting material. Yes, same for mine. I probably digressed in a different direction than you, but there will be conflicts almost surely. I can post my stuff in the next few days. Paolo