public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Add PCD PcdPteMemoryEncryptionAddressOrMask
@ 2017-02-16 21:02 Leo Duran
  2017-02-16 21:02 ` [PATCH v3 1/4] MdeModulePkg: " Leo Duran
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Leo Duran @ 2017-02-16 21:02 UTC (permalink / raw)
  To: edk2-devel; +Cc: Leo Duran

This new PCD holds the address mask for page table entries when memory
encryption is enabled on AMD processors supporting the Secure Encrypted
Virtualization (SEV) feature.

This mask is be applied when creating 1:1 virtual to physical mapping tables.
For example, the OvmfPkg sets the PCD when launching SEV-enabled guests.

Changes since v2:
- Apply mask to PCD to keep value within Address field
- Use variable instead of PCD in Page-Fault Handler

To-Do:
- Add PCD support for page tables in UefiCpuPg/PiSmmCpuDxeSmm

Leo Duran (4):
  MdeModulePkg: Add PCD PcdPteMemoryEncryptionAddressOrMask
  MdeModulePkg/Universal/CapsulePei:     Add support for PCD
    PcdPteMemoryEncryptionAddressOrMask
  UefiCpuPkg/Universal/Acpi/S3Resume2Pei:     Add support for PCD
    PcdPteMemoryEncryptionAddressOrMask
  MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe:     Add support for
    PCD PcdPteMemoryEncryptionAddressOrMask

 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf            |  5 +++-
 MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c   | 29 ++++++++++++++++------
 MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h   |  6 +++++
 MdeModulePkg/MdeModulePkg.dec                      |  8 ++++++
 .../BootScriptExecutorDxe.inf                      |  2 ++
 .../Acpi/BootScriptExecutorDxe/ScriptExecute.c     |  7 ++++++
 .../Acpi/BootScriptExecutorDxe/ScriptExecute.h     |  2 ++
 .../Acpi/BootScriptExecutorDxe/X64/SetIdtEntry.c   | 16 ++++++++----
 MdeModulePkg/Universal/CapsulePei/CapsulePei.inf   |  2 ++
 .../Universal/CapsulePei/Common/CommonHeader.h     |  7 ++++++
 MdeModulePkg/Universal/CapsulePei/UefiCapsule.c    | 13 +++++++---
 MdeModulePkg/Universal/CapsulePei/X64/X64Entry.c   | 23 +++++++++++------
 UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c  | 16 +++++++++---
 .../Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf   |  2 ++
 14 files changed, 109 insertions(+), 29 deletions(-)

-- 
2.7.4



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

end of thread, other threads:[~2017-02-22 15:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-16 21:02 [PATCH v3 0/4] Add PCD PcdPteMemoryEncryptionAddressOrMask Leo Duran
2017-02-16 21:02 ` [PATCH v3 1/4] MdeModulePkg: " Leo Duran
2017-02-16 21:02 ` [PATCH v3 2/4] MdeModulePkg/Universal/CapsulePei: Add support for " Leo Duran
2017-02-20  6:04   ` Zeng, Star
2017-02-21 16:42     ` Duran, Leo
2017-02-22  1:20       ` Zeng, Star
2017-02-22 15:07         ` Duran, Leo
2017-02-16 21:02 ` [PATCH v3 3/4] UefiCpuPkg/Universal/Acpi/S3Resume2Pei: " Leo Duran
2017-02-16 21:02 ` [PATCH v3 4/4] MdeModulePkg/Universal/Acpi/BootScriptExecutorDxe: " Leo Duran
2017-02-16 21:56 ` [PATCH v3 0/4] Add " Laszlo Ersek

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