Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 54cd0d9b2f816fe519afffe2aa57cfbf13f56088
      
https://github.com/tianocore/edk2/commit/54cd0d9b2f816fe519afffe2aa57cfbf13f56088
  Author: Min Xu <min.m...@intel.com>
  Date:   2022-06-02 (Thu, 02 Jun 2022)

  Changed paths:
    M OvmfPkg/TdxDxe/X64/ApRunLoop.nasm

  Log Message:
  -----------
  OvmfPkg: Fix TDVMCALL error in ApRunLoop.nasm

According to GHCI Spec Table 2-1, in TDVMCALL R10 should be cleared
to 0 in input operands, and be checked for the return result.
https://cdrdv2.intel.com/v1/dl/getContent/726790

Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Signed-off-by: Min Xu <min.m...@intel.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>


  Commit: 64706ef761273ba403f9cb3b7a986bfb804c0a87
      
https://github.com/tianocore/edk2/commit/64706ef761273ba403f9cb3b7a986bfb804c0a87
  Author: Min Xu <min.m...@intel.com>
  Date:   2022-06-02 (Thu, 02 Jun 2022)

  Changed paths:
    M OvmfPkg/Library/PeilessStartupLib/Hob.c

  Log Message:
  -----------
  OvmfPkg: Search EFI_RESOURCE_MEMORY_UNACCEPTED for Fw hoblist

In current TDVF implementation all unaccepted memory passed in Hoblist
are tagged as EFI_RESOURCE_MEMORY_UNACCEPTED. They're all accepted before
they can be accessed. After accepting memory region, the Hob ResourceType
is unchanged (still be EFI_RESOURCE_MEMORY_UNACCEPTED).

TDVF Config-B skip PEI phase and it tries to find a memory region which
is the largest one below 4GB. Then this memory region will be used as the
firmware hoblist.

So we should walk thru the input hoblist and search for the memory region
with the type of EFI_RESOURCE_MEMORY_UNACCEPTED.

Because EFI_RESOURCE_MEMORY_UNACCEPTED has not been officially in PI spec.
So it cannot be defined in MdePkg/Include/Pi/PiHob.h. As a temporary
solution it is defined in Hob.c.

There is a patch-set for lazy-accept very soon. In that patch-set
EFI_RESOURCE_MEMORY_UNACCEPTED will be defined in MdeModulePkg.

Config-B: https://edk2.groups.io/g/devel/message/76367

Cc: Erdem Aktas <erdemak...@google.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Signed-off-by: Min Xu <min.m...@intel.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>


Compare: https://github.com/tianocore/edk2/compare/62044aa99bcf...64706ef76127


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to