Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp837948imi; Thu, 21 Jul 2022 11:59:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uNe0is3LA3WY7EojlKRQJpz16VDqx5/4yhOrHLI5TBPX7EarvPj2baOJC96lmtW5YL3+mk X-Received: by 2002:a17:906:9751:b0:72f:1b36:e1de with SMTP id o17-20020a170906975100b0072f1b36e1demr25648934ejy.451.1658429973010; Thu, 21 Jul 2022 11:59:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658429973; cv=none; d=google.com; s=arc-20160816; b=Uwyh/7N/c3un3bcRB0H9KM8tad5k+zUFkjcML5C4Xjm6BSmSsRJthH63ep0kHR8/9O fA+ds6Gyt7GLi8OedUVzpHdcNHDqY6f3qFlscH5XaFvKLDSwQ+KsxHEQbQbNYU3JaBwd iWtOmYX/CaY8dwzfDyz3Zv5g5Rmi6t7R5NzRcwRCHQN/IS34AIJONcODD1T7hj3Uy5jk Jvk8696PxqyF9umDvYq1ECxYWWTEMovPLcH4fNsxsu1/6U17Iz+4bytGxwNY0Ex2V1UH iJh7sPSbv/3QXidWsuKUA3Gjfb94CAemUXfKFoc+zOf4IkFcNp/qM30SXMPn/ar7XraZ Hr0w== 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=yl3gWpHjwbMJw4knfrJ6rZk07+e4VkU6vPu7DoYkqS4=; b=ius+9vtkeEUazMYSiy2LTBrDA2qzxK0Lqla82loDmzTLoO7Mn6+n2LCIUMDEXn4SNn /ailfW6Tttast1ogbG1tfaQonN+ROI/3W+iS1gYtvKRl6qCIPM1lU2S+SjV9Y+4ZFn7B UMy2HP+YyD2vMzWkcXm3EC2MuICByN/8zzUmhw0edOu6upnp5P44Q2rTS1ub87ZqxdY0 uwRbHmRw0JL6DxLgT+DvFTS2vukhQpryvAhVqgmCpALD3Ml2i8/wI/Jx8f1Af4A1UDlb gV43Li/xY5V9wHUV9yltFLg02hXyTz6FXD5FFPow1/cWwSN23UzuET18I1zk0gJQ5YR3 W5Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nnnfm1yz; 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 z6-20020a05640240c600b0043bc4f61b58si4046894edb.119.2022.07.21.11.59.08; Thu, 21 Jul 2022 11:59:32 -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=nnnfm1yz; 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 S229920AbiGUSw3 (ORCPT + 99 others); Thu, 21 Jul 2022 14:52:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbiGUSw2 (ORCPT ); Thu, 21 Jul 2022 14:52:28 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B19842ED5A for ; Thu, 21 Jul 2022 11:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658429546; x=1689965546; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=BWL7+RtnFnoXytr6NeetuBR2+uRW0R2T7TZSH0tDrAg=; b=nnnfm1yzT2N/Un2tDiHOcAccVE78hZ/zZr/zIjQsR2wBFfHIEg6pgIjo htyaSr35I72NmVtBwU+kgUwecv4AlPgtNa8IrOOdoqOigptlPAOo/Aqvb nc6NyAv9luMeMcKlz4zO3lLmQRXRWELj3BwaTCZzooOsNf6yfpX6Rkcsc JBabxKAXqljSOK1fCXmogrj4eBpxLsw2v9mpWbj3koDJOgnW06nHSb1vB 8aUzGtKYzuB374kjW4wtrruGKauBAxL8XdJsUTAOS6ilsC6vxX/rDeDHu Q2FpVj8T81eiV5yQH/gYQAhgXGXjhAYj79QC4ZAH9aaDGTUxqEjUu+SoU w==; X-IronPort-AV: E=McAfee;i="6400,9594,10415"; a="273998501" X-IronPort-AV: E=Sophos;i="5.93,183,1654585200"; d="scan'208";a="273998501" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2022 11:52:26 -0700 X-IronPort-AV: E=Sophos;i="5.93,183,1654585200"; d="scan'208";a="573867059" Received: from vasantgx-mobl.amr.corp.intel.com (HELO [10.212.244.191]) ([10.212.244.191]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2022 11:52:25 -0700 Message-ID: <1fdecc17-8f4f-fceb-8da0-4a21ca0d58be@intel.com> Date: Thu, 21 Jul 2022 11:52:24 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH v8 5/5] x86/tdx: Add Quote generation support Content-Language: en-US To: Isaku Yamahata Cc: Sathyanarayanan Kuppuswamy , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , "Kirill A . Shutemov" , Tony Luck , Andi Kleen , Kai Huang , Wander Lairson Costa , 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> <20220721184221.GA3288872@ls.amr.corp.intel.com> From: Dave Hansen In-Reply-To: <20220721184221.GA3288872@ls.amr.corp.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 On 7/21/22 11:42, Isaku Yamahata wrote: > Regarding to the size of quote, there is no hard limit because it's for future > usage. But here is a rough idea about it. > > - 4KB(1 page) can accommodate TDREPORT that is defined right now. > - 128KB is too small for foreseen use cases. > - 1MB is too big. big enough for future. Again, we're off in the weeds. How does the VMM know how much to read/write? I have a theory: the spec says that R12 is: "Shared 4KB GPA as input – the memory contains a TDREPORT_STRUCT." That's *A* 4KB GPA. The maximum is one 4KB page. That's the only thing that makes sense because there's no length in the ABI anywhere. What am I missing?