From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 920BD9410AF for ; Thu, 9 May 2024 05:27:37 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=fWy6DJV65QZBxbSCjDpRgNvwruBM2sEtKF2PSPoXA3E=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20240206; t=1715232455; v=1; b=Kny39A4e9PJfylcb4YmVwSHpKVLrSM6IlKwIyV6PYDTrpkVp7qpBAsc/b3R9gjmAJZfKJQ9N Q6qx9TaYG08IaY5fngF/vzRPOzlF99N9fpMnzKUXEm5qvj0I8DNiUujxZB0Q8iyuW/Lxr7gW5yj op+YDmiYx1emsXALBEmwmPOoOM0BR13zsikgAIZZFbQ0r7mGtdtfn3fmnzPlCWU75mT/n/hkRjB G1hbacIQ/V4x2gL1kmwYUpl01ZStvifRRYsghO+FciGTHQNMW+DQTWZtfMk+h/IcW2NljAdUXAc u/As9ClKFPAYvPd8M0OgyR/iZmt9dwC/9QdjCWwAL5t+Q== X-Received: by 127.0.0.2 with SMTP id Zf81YY7687511xA0vMTBj3fS; Wed, 08 May 2024 22:27:35 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by mx.groups.io with SMTP id smtpd.web11.3291.1715232449973499409 for ; Wed, 08 May 2024 22:27:30 -0700 X-CSE-ConnectionGUID: 4H3/N6dVQd6lzTVE3ku1qg== X-CSE-MsgGUID: 0l36hYP2QK+uLnF1M/23Yg== X-IronPort-AV: E=McAfee;i="6600,9927,11067"; a="11257965" X-IronPort-AV: E=Sophos;i="6.08,146,1712646000"; d="scan'208";a="11257965" X-Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 22:27:29 -0700 X-CSE-ConnectionGUID: cnrvSi4rRQWQd3o6dxL1/A== X-CSE-MsgGUID: /d/WasSuT4yQS4FZQwtPtw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,146,1712646000"; d="scan'208";a="60290040" X-Received: from sh1gapp1006.ccr.corp.intel.com ([10.239.189.76]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 22:27:27 -0700 From: "Du Lin" To: devel@edk2.groups.io Cc: Du Lin , Ard Biesheuvel , Gerd Hoffmann , Jiewen Yao Subject: [edk2-devel] [PATCH] OvmfPkg: Update VMM Hob list check to support new resource attributes Date: Thu, 9 May 2024 13:27:07 +0800 Message-ID: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Wed, 08 May 2024 22:27:30 -0700 Resent-From: du.lin@intel.com Reply-To: devel@edk2.groups.io,du.lin@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: lJbgUrQeRpMfVBwxVjpUqz4ox7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=Kny39A4e; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io Encrypted and Special Purpose resource attributes are introduced in PI 1.8 Specification. This patch is to update VMM Hob list integrity check to recognise these resource attributes. Cc: Ard Biesheuvel Cc: Gerd Hoffmann Cc: Jiewen Yao Signed-off-by: Du Lin --- OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c b/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c index b6085eab44..19e9b1bf54 100644 --- a/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c +++ b/OvmfPkg/IntelTdx/TdxHelperLib/SecTdxHelper.c @@ -643,6 +643,8 @@ ValidateHobList ( EFI_RESOURCE_ATTRIBUTE_PERSISTABLE | EFI_RESOURCE_ATTRIBUTE_READ_ONLY_PROTECTED | EFI_RESOURCE_ATTRIBUTE_READ_ONLY_PROTECTABLE | + EFI_RESOURCE_ATTRIBUTE_ENCRYPTED| + EFI_RESOURCE_ATTRIBUTE_SPECIAL_PURPOSE | EFI_RESOURCE_ATTRIBUTE_MORE_RELIABLE))) != 0) { DEBUG ((DEBUG_ERROR, "HOB: Unknow ResourceDescriptor ResourceAttribute type. Type: 0x%08x\n", Hob.ResourceDescriptor->ResourceAttribute)); -- 2.44.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118715): https://edk2.groups.io/g/devel/message/118715 Mute This Topic: https://groups.io/mt/105996363/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-