From nobody Fri Nov 15 10:35:29 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+90219+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+90219+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1654484429; cv=none; d=zohomail.com; s=zohoarc; b=BLzoneHIdHdoaNi94J1NIkQ4ULVL/+1e9Jtap/CmD5JJY/f9WJ+Ki/yE/ldpXEuE9X2t2W0/POFhSiwD1NVwk4PpZJdmoty+ufNa/A8V3JN+kXdqoX05Gl46eSS0ppczw45HEyteJRTAR2fgG/JMSJL1I0Dn6o503yrQ2kIx+nI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1654484429; 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=+JKux+X9SXD5ABlpdvwD1OlMoCHSCOtjWQjAEXzRVFc=; b=a9/5LouM6EdQfzVvyA9t5Hwuh/t7ro+NFgbptpSI8exQQo1VKjw8LQRTMw/qZnK9+cCyZ/zHI2avkHTqSsiMWhAvXts5zYmeHeV2iyIyrYYpBMFlvtT25ZSEkE59HILcM1AZDoc2OBhlxaJ82xNS+DNy7JgP5SjpeoSssyqnv0A= 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+90219+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 1654484429429339.1189624062158; Sun, 5 Jun 2022 20:00:29 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id VljFYY1788612xoJrRfULq7g; Sun, 05 Jun 2022 20:00:29 -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:28 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="276458064" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="276458064" 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:26 -0700 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="647285741" 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:24 -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 03/14] OvmfPkg: Use EFI_RESOURCE_MEMORY_UNACCEPTED which defined in MdeModulePkg Date: Mon, 6 Jun 2022 10:59:51 +0800 Message-Id: <4038743e19a7eba49e9aada8f64d2eae4acabf04.1654420875.git.min.m.xu@intel.com> 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: SvqJ1qD0SQbcn7QT85X6uIzox1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1654484429; bh=U2dpa3k4J8Xm/xmudDpP5e+0Bpaa5UFeIPVgwS2DAPA=; h=Cc:Date:From:Reply-To:Subject:To; b=PCAZMb/zSZBYnYLaMDstuaqcNKdVbv+Ctat7IA2gYryFAzHwUOMMAeaSeYmU68BJg5+ r7XQ73dRZOZJSLVHJhQKy/dZS7pXGhwlXcSqxHUnDtDw7UyDg+TCUEzGHNv/rCE1KVqel KsPCYbYpSXC96ChsNuhf7sz5ZSrqBj4CO9M= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1654484430871100005 Content-Type: text/plain; charset="utf-8" From: Min M Xu RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3937 EFI_RESOURCE_MEMORY_UNACCEPTED is defined in MdeModulePkg. The files which use the definition are updated as well. Cc: Erdem Aktas Cc: Gerd Hoffmann Cc: James Bottomley Cc: Jiewen Yao Cc: Tom Lendacky Signed-off-by: Min Xu --- OvmfPkg/Library/PeilessStartupLib/Hob.c | 3 +-- OvmfPkg/Library/PlatformInitLib/IntelTdx.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/OvmfPkg/Library/PeilessStartupLib/Hob.c b/OvmfPkg/Library/Peil= essStartupLib/Hob.c index 5fc84a809025..a9b92b5fbaba 100644 --- a/OvmfPkg/Library/PeilessStartupLib/Hob.c +++ b/OvmfPkg/Library/PeilessStartupLib/Hob.c @@ -20,10 +20,9 @@ #include #include #include +#include #include "PeilessStartupInternal.h" =20 -#define EFI_RESOURCE_MEMORY_UNACCEPTED 7 - /** * Construct the HobList in SEC phase. * diff --git a/OvmfPkg/Library/PlatformInitLib/IntelTdx.c b/OvmfPkg/Library/P= latformInitLib/IntelTdx.c index c6d7c8bb6e0e..396b14d919d2 100644 --- a/OvmfPkg/Library/PlatformInitLib/IntelTdx.c +++ b/OvmfPkg/Library/PlatformInitLib/IntelTdx.c @@ -20,11 +20,11 @@ #include #include #include +#include #include #include =20 #define ALIGNED_2MB_MASK 0x1fffff -#define EFI_RESOURCE_MEMORY_UNACCEPTED 7 =20 /** This function will be called to accept pages. Only BSP accepts pages. --=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 (#90219): https://edk2.groups.io/g/devel/message/90219 Mute This Topic: https://groups.io/mt/91570196/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-