public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [edk2-devel] [PATCH] OvmfPkg: Update VMM Hob list check to support new resource attributes
@ 2024-05-09  5:27 Du Lin
  2024-05-13  8:58 ` Gerd Hoffmann
  2024-05-20  7:14 ` Du Lin
  0 siblings, 2 replies; 14+ messages in thread
From: Du Lin @ 2024-05-09  5:27 UTC (permalink / raw)
  To: devel; +Cc: Du Lin, Ard Biesheuvel, Gerd Hoffmann, Jiewen Yao

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 <ardb+tianocore@kernel.org>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Du Lin <du.lin@intel.com>
---
 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]
-=-=-=-=-=-=-=-=-=-=-=-



^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-05-30 12:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <17CDBAD36E570CF2.8965@groups.io>
2024-05-16  9:37 ` [edk2-devel] [PATCH] OvmfPkg: Update VMM Hob list check to support new resource attributes Yao, Jiewen
2024-05-17  5:36   ` Du Lin
2024-05-27  6:22   ` Du Lin
2024-05-27  6:42     ` Yao, Jiewen
2024-05-27  7:11       ` 回复: " gaoliming via groups.io
2024-05-27  7:12         ` Yao, Jiewen
     [not found]         ` <17D347097EAE4902.28935@groups.io>
2024-05-29 23:59           ` Yao, Jiewen
2024-05-30 10:26             ` Du Lin
2024-05-30 10:30               ` Yao, Jiewen
2024-05-30 12:06                 ` Du Lin
2024-05-30 12:11                   ` Yao, Jiewen
2024-05-09  5:27 Du Lin
2024-05-13  8:58 ` Gerd Hoffmann
2024-05-20  7:14 ` Du Lin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox