From nobody Fri Nov 15 10:43:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+90225+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+90225+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1654484443; cv=none; d=zohomail.com; s=zohoarc; b=BvT2ngLfR6AaaL3Y9tQvam2iYPob75YpU0iAJUr9cRXAISnfPdLOAbRqGuu3lpIlrJEm+gMcbS6K06eTeQ6WCus+L19xBEm1lkOQawAdjinox4sjx2iiCKqC/Pj9C/E4xVF+R1jdQb5MISQf6LNDoVIh6K5tckqTTMlYVPL5IV4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654484443; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=rDf77a6naWj9VRybF1zWRXbNw28aa0SOHjJ9oz+nHtk=; b=VLqrStvSrlnmOUh6+yFyJ2YCrSMlRHjgTzUThjR86I000AjvR/BY4hOpFl12+zW49XCQR8kvpAVZZwl5DwTYyvcbuUybNIp71CdH3Z4OPNPYPehKtjGGZliwtToRHJZRrwxHnUSWvS7KzVbiGCVZ2ejzvx+20YDV1Bqx0uwCtck= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+90225+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 165448444358464.94231812932264; Sun, 5 Jun 2022 20:00:43 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id KD2YYY1788612xrxf5EGGdQG; Sun, 05 Jun 2022 20:00:42 -0700 X-Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web08.27749.1654484424914450989 for ; Sun, 05 Jun 2022 20:00:42 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="276458127" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="276458127" X-Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2022 20:00:41 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="647285806" X-Received: from mxu9-mobl1.ccr.corp.intel.com ([10.255.29.66]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2022 20:00:39 -0700 From: "Min Xu" To: devel@edk2.groups.io Cc: Min M Xu , Erdem Aktas , Gerd Hoffmann , James Bottomley , Jiewen Yao , Tom Lendacky Subject: [edk2-devel] [PATCH 09/14] OvmfPkg: Add MaxAcceptedMemoryAddress in TDX work area Date: Mon, 6 Jun 2022 10:59:57 +0800 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,min.m.xu@intel.com X-Gm-Message-State: za8jeuxpC8gS0sw9nJ9GGNgYx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1654484442; bh=E3+H2kifE9x9lcx3R5v9VsWokZQ9VLYZKmz5HWOPAB0=; h=Cc:Date:From:Reply-To:Subject:To; b=CVf2s4TgHF4+AlG1IU3NFTzUL1Jc9TxqcT8wjR6XA1DreWNYt6U7uqC8Lrs9W1h7/lJ LnGbZuS3SxcsbY0lfXrf9+qyqoda3IoX+SL/o5JmaKQiF1oufLSgxm98M7cwzpkkOrbna qTnnQFhEt7Ky7tMcDN0bfBeFgNGCOX+RQ6Y= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1654484444920100031 Content-Type: text/plain; charset="utf-8" From: Min M Xu RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3937 In lazy-accept the MaxAcceptedMemoryAddress is needed in TransferTdxHobList and ContructFwHobList(at PeilessStartupLib). But in SEC phase we cannot use a global variable to pass this value. So we add a new field (MaxAcceptedMemoryAddress) in Tdx work area. Cc: Erdem Aktas Cc: Gerd Hoffmann Cc: James Bottomley Cc: Jiewen Yao Cc: Tom Lendacky Signed-off-by: Min Xu --- OvmfPkg/Include/WorkArea.h | 1 + 1 file changed, 1 insertion(+) diff --git a/OvmfPkg/Include/WorkArea.h b/OvmfPkg/Include/WorkArea.h index bf56fc4a6f65..2c2a5816b0dc 100644 --- a/OvmfPkg/Include/WorkArea.h +++ b/OvmfPkg/Include/WorkArea.h @@ -71,6 +71,7 @@ typedef struct _SEC_TDX_WORK_AREA { UINT32 PageTableReady; UINT32 Gpaw; UINT64 HobList; + UINT64 MaxAcceptedMemoryAddress; } SEC_TDX_WORK_AREA; =20 typedef struct _TDX_WORK_AREA { --=20 2.29.2.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#90225): https://edk2.groups.io/g/devel/message/90225 Mute This Topic: https://groups.io/mt/91570205/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-