Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp787084rwb; Wed, 9 Nov 2022 08:36:08 -0800 (PST) X-Google-Smtp-Source: AMsMyM69WvVI3A3AWaM0ZXtE5jUG7hxXIzMeNphkAPsW2bocHVVww26VQn9yxyTeVE6KMtUvVpwb X-Received: by 2002:a05:6402:174f:b0:463:12ed:3f8f with SMTP id v15-20020a056402174f00b0046312ed3f8fmr59531170edx.67.1668011768485; Wed, 09 Nov 2022 08:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668011768; cv=none; d=google.com; s=arc-20160816; b=SBrJPu3f2tZRrO3hgVZrAWInb5KTCm3hu8tZQgLmt8rqDFJ8+0R4CE4DKnZsc/mY0Y ETOG3l8rPdE/yzKecaaK8nq3nROsReEihJbJ4FONWyfBBmOTzMhF2IBxEzZ3iMuguhPK GhJJQuh9hPNBu8Ze99PxzRlkvsHxyq4fGgfhS7Cpov+l+S+aexe9KVJyY1CKMdM7jVwy 8vkSEBdkLEOOHYQtQQnszqwfAEqKt4QIQhQCDMB8HRPz12k+qObjPHt58QabPuE/6Q/n QlHJ9zFjoWvFAwPJZ2qhs/Splp0Qybogl3SfAydA6YUjNOWo1VYjuLU0f3PW5TITX345 QznA== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=SJKAsYHzKZ/u7p5MK15CMAku11BdMn9YMiDusscVAO4=; b=HqUcLhOkrFPZD8cHAwLd0cZolT37EX6efqk/tNByEuJJT49wPPb5RwM6nVXatF8s8U jlI+j2EpEuQKUulBT8+Y5p747VoOYgMX043PfAwToXuvBljSZ7G6VRZGcM/etA/Qpfk3 O8PXebFpR+ZqQqL97Tt1MEeD/icCOKGNno590BV1gR4q8rezRh+U5XwiB7RFEBG4+oou jK0J0qdTrTixwet18YicKkqWZTQLDrqXhgCW2YYFN7Hhc3/xuFzHpHb8Rtff89OcoXOQ T2z/PZfnlpunw3Z26bITV1VmV5ppvff9iAZb6CaKOZS4tBdNP7WWSAs25M/00TkP+9t6 VjTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YFzpgE6W; 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 sg10-20020a170907a40a00b007ae86742c37si3420638ejc.60.2022.11.09.08.35.45; Wed, 09 Nov 2022 08:36:08 -0800 (PST) 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=YFzpgE6W; 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 S231629AbiKIPmg (ORCPT + 92 others); Wed, 9 Nov 2022 10:42:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231177AbiKIPme (ORCPT ); Wed, 9 Nov 2022 10:42:34 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B75A412602; Wed, 9 Nov 2022 07:42:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668008553; x=1699544553; h=message-id:date:mime-version:subject:from:to:cc: references:in-reply-to:content-transfer-encoding; bh=sjfgAx2A7yyUe7NUZRr+6n5cM7pYtAKei3pTqp588Xs=; b=YFzpgE6WYSbvyrvrMzBHU32Rs5KTFv9xZ6OJtLSY4w5dIV0l0Vtyc9iI R/+eEVvTb1gk5dQlAMBN2AxKWicMGxSD9lmCs8xxCTw80bKz5q7zCc4cp +Eax4jpVVlze6XZCoCfOTJsundn2ZZA8CHORKnBV89kaW7CuwDExIh5T/ v8PumwCOPx4AvTplkBkPp4SgUHIgATXzD07j4QacPzQHCL/cJXBmiXLWn hOqQ4DXoWcx4l5Gtc0rlgW23m/ZS7MvqdfodXn69nrnWBv56CNOKPhmYG 9feq83QlnodIpIXiTgJL9qexs7GT6wWxTGk1x2vwBNNF5Dcx8WZcowRR4 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10526"; a="311005406" X-IronPort-AV: E=Sophos;i="5.96,151,1665471600"; d="scan'208";a="311005406" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2022 07:37:31 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10526"; a="742439702" X-IronPort-AV: E=Sophos;i="5.96,151,1665471600"; d="scan'208";a="742439702" Received: from dmurray1-mobl1.amr.corp.intel.com (HELO [10.209.100.117]) ([10.209.100.117]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2022 07:37:30 -0800 Message-ID: <6cab73d3-4d56-8069-f0f1-d47346c7bd15@linux.intel.com> Date: Wed, 9 Nov 2022 07:37:30 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.2.2 Subject: Re: [PATCH v17 2/3] virt: Add TDX guest driver Content-Language: en-US From: Sathyanarayanan Kuppuswamy To: Wander Lairson Costa Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Shuah Khan , Jonathan Corbet , "H . Peter Anvin" , Greg Kroah-Hartman , "Kirill A . Shutemov" , Tony Luck , Kai Huang , Isaku Yamahata , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-doc@vger.kernel.org References: <20221104032355.227814-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20221104032355.227814-3-sathyanarayanan.kuppuswamy@linux.intel.com> <20221109142431.ffkhouuxewjajp6g@fedora> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 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 On 11/9/22 7:36 AM, Sathyanarayanan Kuppuswamy wrote: > TDG.MR.TDCALL expects reportdata and tdreport buffers to be size aligned. So, > allocating them together with sizeof(struct tdx report req) will not work. We > can get around this by allocating a slightly larger buffer size. However, because > it is not a time-critical path, I believe that allocating two separate buffers > for input/output is simpler. I mean't TDG.MR.REPORT TDCALL. -- Sathyanarayanan Kuppuswamy Linux Kernel Developer