Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp836079imi; Thu, 21 Jul 2022 11:57:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1siIXiFC0scGslxHTb6K/62VxPmJCwubhbswG7WL31cb5LcvL/Dx6x59ogLbmNTVtFHxevv X-Received: by 2002:a05:6402:4244:b0:43a:ded8:563b with SMTP id g4-20020a056402424400b0043aded8563bmr59928150edb.222.1658429832930; Thu, 21 Jul 2022 11:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658429832; cv=none; d=google.com; s=arc-20160816; b=CfGZZggTTblQ0hF5ajeSJRuwQbq1KGhj+d5pVVA8MnUU/GaIB0cRVqKDUF+hBi/iKR cAB0OlVZpPqV2Mj7nRNAMLJnZ/fedk8b7qUonvX818eco35HrjDNFgBEapueZ4O21f8n stVmpTYYEenA9KBlukWEp1HL61lyRfsv4suzudL/BRVhXvymih6V3Eovhus6AfGSIOU/ Jbw4Vegvpg4fSMaFFonGOWR8qn9AoYRT3L4hhj+DDmRRzMe+sTE/s6DmaH6dklVrV4I3 6FA6psuu6+ASalh4322xWmuhTR2zuxSONws+gurF1Y3+HLJJcW0eGo2HY9ZD0hynyfnT 7QQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=2/9H/asXqk3pSt/fQ48ftWv5Jo+8oZQnF1OcdHZu+Yw=; b=sZDnI9f7P4VLa2AoFX2FpDQRlYzNQ+F559Ho4NMNsx0vA+iUvF0aVQjq8vlTKO2kth WfOnEKqTzn3onpK6/WvMUkXwAjWcCFYGM6EScvQoLcizH5PFkd86qlDzflepjXI58vfe TJqMNhuT+MGtmS4nYhxkM1Maz5nuvcIGXFnB/efx0ZEOoXAR6+TOEiQhdZE+pVuuBLBL wtTQBolLN3u6iCBUmpGo5KpEAjAXDtv/Gq8VT1Z0zaN/OdgZVjSsQLDS4Eqz2e8VIxfS LZbtwpWZdGit7GXFfiRSEQwvAy/YT330rGBa9ymw+RP7FjAeIzQnYrBp1/m3VVW58g6u NO7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=H0igRBma; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jw13-20020a17090776ad00b0072b57c1f238si2814533ejc.291.2022.07.21.11.56.48; Thu, 21 Jul 2022 11:57:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=H0igRBma; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbiGUSbN (ORCPT + 99 others); Thu, 21 Jul 2022 14:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiGUSbL (ORCPT ); Thu, 21 Jul 2022 14:31:11 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4E672559A for ; Thu, 21 Jul 2022 11:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658428270; x=1689964270; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=W4/tIIdtERhphnO7fWOgUzVvIqF1v4fyTEzDJ1w8bGc=; b=H0igRBmaPEMArSCdvZSun+cmgb0jfQ1tayWIHeGU1rP0fOusfY2L44XO ZF5XGmVz2dhSeo5AeXqEW7xCeO14Xw5G764Yee5fT/MeoCddjPVJqCA0u /UZvr9oIDPDF9qEA0eFTC2RCV2A3N6yiltpobbU2Ug2EsYGAY0Wq1xpgq RstQjzUXB22J44RGOxbMF3x7yZBzthy9HieHQATr/IRH8giL5T3WgfDip Ev4dZJHnfzjO57TFe2sI8E82L16Y82/7E9pStYqmnPNvE3dEoI9/I3zDe /9qKnia1aitlh2rKedLPwSSB+hwKoAY5NqAFCzIDTCY1favaljAbZsybF g==; X-IronPort-AV: E=McAfee;i="6400,9594,10415"; a="284697925" X-IronPort-AV: E=Sophos;i="5.93,183,1654585200"; d="scan'208";a="284697925" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2022 11:31:10 -0700 X-IronPort-AV: E=Sophos;i="5.93,183,1654585200"; d="scan'208";a="598574968" Received: from sattaran-mobl1.amr.corp.intel.com (HELO [10.212.246.186]) ([10.212.246.186]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2022 11:31:10 -0700 Message-ID: <9a85546c-954d-446d-28d5-8a88be5a1ce3@linux.intel.com> Date: Thu, 21 Jul 2022 11:31:09 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0 Thunderbird/91.11.0 Subject: Re: [PATCH v8 5/5] x86/tdx: Add Quote generation support Content-Language: en-US To: Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org Cc: "H . Peter Anvin" , "Kirill A . Shutemov" , Tony Luck , Andi Kleen , Kai Huang , Wander Lairson Costa , Isaku Yamahata , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, linux-kernel@vger.kernel.org References: <20220609025220.2615197-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20220609025220.2615197-6-sathyanarayanan.kuppuswamy@linux.intel.com> <214e24f0-5236-be8d-024a-da48737d854a@intel.com> From: Sathyanarayanan Kuppuswamy In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, On 7/21/22 10:19 AM, Dave Hansen wrote: > How many bytes does the TDX module read from and write to the guest > physical address space? What are the absolute limits? What is the > minimum and the maximum that the kernel needs to handle? Minimum is 1K (equal to TDREPORT size, on input Quoting Enclave reads 1K TDREPORT data from GPA) Maximum size is not defined in the spec. I think for future compatibility, spec does not limit the quote size. For most cases, I think 8K should be big enough. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer