From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8C4D7C433B4 for ; Wed, 19 May 2021 05:00:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5A919613B4 for ; Wed, 19 May 2021 05:00:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240537AbhESFBg (ORCPT ); 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