Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: a00e2e5513926a4031d96dc707113d13e1cdf814
      
https://github.com/tianocore/edk2/commit/a00e2e5513926a4031d96dc707113d13e1cdf814
  Author: Dionna Glaze <dionnagl...@google.com>
  Date:   2023-01-26 (Thu, 26 Jan 2023)

  Changed paths:
    M OvmfPkg/AmdSevDxe/AmdSevDxe.c
    M OvmfPkg/AmdSevDxe/AmdSevDxe.inf

  Log Message:
  -----------
  OvmfPkg: Add memory acceptance event in AmdSevDxe

The added behavior is to accept all unaccepted memory at
ExitBootServices if the behavior is not disabled. This allows safe
upgrades for OS loaders to affirm their support for the unaccepted
memory type.

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>
Cc: Ard Biesheuvel <a...@kernel.org>
Cc: "Min M. Xu" <min.m...@intel.com>
Cc: Andrew Fish <af...@apple.com>
Cc: "Michael D. Kinney" <michael.d.kin...@intel.com>

Signed-off-by: Dionna Glaze <dionnagl...@google.com>
Reviewed-by: Ard Biesheuvel <a...@kernel.org>


  Commit: 26847fb6be7fff83a834a3154224588afede0073
      
https://github.com/tianocore/edk2/commit/26847fb6be7fff83a834a3154224588afede0073
  Author: Dionna Glaze <dionnagl...@google.com>
  Date:   2023-01-26 (Thu, 26 Jan 2023)

  Changed paths:
    A OvmfPkg/Include/Protocol/SevMemoryAcceptance.h
    M OvmfPkg/OvmfPkg.dec

  Log Message:
  -----------
  OvmfPkg: Introduce the OvmfSevMemoryAcceptance protocol

The default behavior for unaccepted memory in SEV-SNP is to accept all
memory when ExitBootServices is called. An OS loader can use this
protocol to disable this behavior to assume responsibility for memory
acceptance and to affirm that the OS can handle the unaccepted memory
type.

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>
Cc: Ard Biesheuvel <a...@kernel.org>
Cc: "Min M. Xu" <min.m...@intel.com>
Cc: Andrew Fish <af...@apple.com>
Cc: "Michael D. Kinney" <michael.d.kin...@intel.com>

Signed-off-by: Dionna Glaze <dionnagl...@google.com>
Reviewed-by: Ard Biesheuvel <a...@kernel.org>


  Commit: 466d8f65e3c7f748d52e7a0046a1f7c1febe5691
      
https://github.com/tianocore/edk2/commit/466d8f65e3c7f748d52e7a0046a1f7c1febe5691
  Author: Dionna Glaze <dionnagl...@google.com>
  Date:   2023-01-26 (Thu, 26 Jan 2023)

  Changed paths:
    M OvmfPkg/AmdSevDxe/AmdSevDxe.c
    M OvmfPkg/AmdSevDxe/AmdSevDxe.inf

  Log Message:
  -----------
  OvmfPkg: Implement AcceptAllUnacceptedMemory in AmdSevDxe

This protocol implementation disables the accept-all-memory behavior
of the BeforeExitBootServices event this driver adds.

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>
Cc: Ard Biesheuvel <a...@kernel.org>
Cc: "Min M. Xu" <min.m...@intel.com>
Cc: Andrew Fish <af...@apple.com>
Cc: "Michael D. Kinney" <michael.d.kin...@intel.com>

Signed-off-by: Dionna Glaze <dionnagl...@google.com>
Reviewed-by: Ard Biesheuvel <a...@kernel.org>


  Commit: 0d129ef7c3a95d64f2f2cab4f8302318775f9933
      
https://github.com/tianocore/edk2/commit/0d129ef7c3a95d64f2f2cab4f8302318775f9933
  Author: Dionna Glaze <dionnagl...@google.com>
  Date:   2023-01-26 (Thu, 26 Jan 2023)

  Changed paths:
    M OvmfPkg/PlatformPei/AmdSev.c

  Log Message:
  -----------
  OvmfPkg/PlatformPei: SEV-SNP make >=4GB unaccepted

Instead of eagerly accepting all memory in PEI, only accept memory under
the 4GB address. This allows a loaded image to use the
MEMORY_ACCEPTANCE_PROTOCOL to disable the accept behavior and indicate
that it can interpret the memory type accordingly.

This classification is safe since ExitBootServices will accept and
reclassify the memory as conventional if the disable protocol is not
used.

Cc: Ard Biescheuvel <a...@kernel.org>
Cc: "Min M. Xu" <min.m...@intel.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Erdem Aktas <erdemak...@google.com>

Signed-off-by: Dionna Glaze <dionnagl...@google.com>
Reviewed-by: Ard Biesheuvel <a...@kernel.org>


Compare: https://github.com/tianocore/edk2/compare/ca573b86157e...0d129ef7c3a9


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

Reply via email to