Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1716318pxj; Wed, 19 May 2021 12:12:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylnAIY+jFWNHlLdr1bqgutE4Y3i5qj7iF9XN1yvzUGN0ZvKiGW/p1N0wLEMrkwiX95oZzQ X-Received: by 2002:aa7:de8b:: with SMTP id j11mr567921edv.363.1621451522254; Wed, 19 May 2021 12:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621451522; cv=none; d=google.com; s=arc-20160816; b=e33pxExS0K3CGOZkSFCUpx8X12kkPZWZlRG+Zf20WlPcVWJAXCWP5rT+DgeNPtnzuG /syoLJFpcN33K4d2qNyIe8k11RBRRhPFen+ftUOkHMVr21Dm5BEEtUPPyuTjM2iAcZhs j0Y3wxyV27EOCzHn4P/gXQP1m56FBKvwHLU7eLIiAkYwp8TI1LQVYk9VwBiodug7Z1Bi j/WQeWltcJuE7rbv5ZWt3bcsxBFUPwVYIcbNkZwFmb+epDtgSTU25TFIkq2tboYswJ9Q pFMnyHuKzDiQ2C3x84lHKx/91x5GLFGU/OnQG5yNE/0+YPlqKjSHRBlXEjndGQvxfsBR oZZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=mCgfdfRSKVlRIbnKN8JY7VeGQmGqF+I8pBOuFchIPjk=; b=Mfe2h5Swr6r60IKkWXXJ6fpvW2m27OkIbkpAfWrzaA0Ah5zQE1bpTiKNQ0GjbvmiaH lTSXjlkJnuHr337EzGhnW1+aMHdOh+1Xs8TunBu6w6YeaWeFRTI+ajSp6iDfZD0VSjhE 32vHrN7tgXsUmsWyxBpOiInokRWEV06IDTGi6L4v0XcfaSMdRcTbeJIVhU4ZPEMrCa+B qGbwQD6yv7ZBHvebDuW/nqKwvU3X7ymO8TWKZ8e0GFa5nzzj/ebS8JMSYJDhy6UdascR 4XeXXLs0qfznXYXVP1olV5mIiYqI96cboJrwQxJItyViiQZvuydesqw/sx2imwNxmP6h YwwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si573969ejp.119.2021.05.19.12.11.37; Wed, 19 May 2021 12:12:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232412AbhESFBg (ORCPT + 99 others); Wed, 19 May 2021 01:01:36 -0400 Received: from mga03.intel.com ([134.134.136.65]:18504 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232005AbhESFBf (ORCPT ); Wed, 19 May 2021 01:01:35 -0400 IronPort-SDR: ThhIdzq0ZQXnZY09ViuSg4L5M9n9RxmLFJf53JSuUuIk+86caxn1E8sZVVuiWKIgJVi5KdfNqs 7Al2vdwbfE+g== X-IronPort-AV: E=McAfee;i="6200,9189,9988"; a="200950459" X-IronPort-AV: E=Sophos;i="5.82,311,1613462400"; d="scan'208";a="200950459" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 22:00:15 -0700 IronPort-SDR: FFtY6X66d/WoHbQWhavZVeIXBHLWzk02bKD/gqg0qZSh2cjz+409LGEA90QNFTgCTm62RRpDBX QGSmXAvqnUiQ== X-IronPort-AV: E=Sophos;i="5.82,311,1613462400"; d="scan'208";a="439798873" Received: from dwchow-mobl.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.212.41.14]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2021 22:00:14 -0700 Subject: Re: [RFC v2 27/32] x86/tdx: Exclude Shared bit from __PHYSICAL_MASK To: Peter Zijlstra , Andy Lutomirski , Dave Hansen , Dan Williams , Tony Luck Cc: Andi Kleen , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Raj Ashok , Sean Christopherson , linux-kernel@vger.kernel.org References: <87b31425b79df3cc44d2bdc6a79d6aa36c42d116.1619458733.git.sathyanarayanan.kuppuswamy@linux.intel.com> From: "Kuppuswamy, Sathyanarayanan" Message-ID: <3e6af3c5-4063-9b63-e80b-05d78f653ab2@linux.intel.com> Date: Tue, 18 May 2021 22:00:11 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <87b31425b79df3cc44d2bdc6a79d6aa36c42d116.1619458733.git.sathyanarayanan.kuppuswamy@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, On 4/26/21 11:01 AM, Kuppuswamy Sathyanarayanan wrote: > From: "Kirill A. Shutemov" > > tdx_shared_mask() returns the mask that has to be set in a page > table entry to make page shared with VMM. > > Also, note that we cannot club shared mapping configuration between > AMD SME and Intel TDX Guest platforms in common function. SME has > to do it very early in __startup_64() as it sets the bit on all > memory, except what is used for communication. TDX can postpone as > we don't need any shared mapping in very early boot. > > Signed-off-by: Kirill A. Shutemov > Reviewed-by: Andi Kleen > Signed-off-by: Kuppuswamy Sathyanarayanan Any comments on this patch? -- Sathyanarayanan Kuppuswamy Linux Kernel Developer