This series is proposed as a replacement (or a replacement "basis") for
patches #1 through #3 of Brijesh's series

  [PATCH v1 0/4] OvmfPkg : IoMmuDxe: BusMasterCommonBuffer support when
                 SEV is active
  
[email protected]">http://mid.mail-archive.com/[email protected]

Patch #4 of the same series ("OvmfPkg : QemuFwCfgLib: Map DMA buffer
with CommonBuffer when SEV is enable") is required on top of this
series; otherwise QemuFwCfgLib will break on SEV.


In the present series, patches #1 through #7 are lightweight
improvements for OvmfPkg/IoMmuDxe, concerning line width, MAP_INFO field
names, conversion specifiers for DEBUG(), coding style, error
propagation, and library class listings.

Patch #8 ("zero out pages before releasing them") fixes the "information
leak" issue pointed out in:

  [email protected]">http://mid.mail-archive.com/[email protected]

Patch #9 ('rework setup of "MapInfo->PlainTextAddress" in Map()') fixes
as-yet undiscussed issues, and lays the groundwork for patch #10, by
reworking the calculation of the plaintext buffer address.

Patch #10 ("implement in-place decryption/encryption for Map/Unmap")
fixes the issues around BusMasterCommonBuffer[64] operations that were
discussed in the following messages:

  [email protected]">http://mid.mail-archive.com/[email protected]
  [email protected]">http://mid.mail-archive.com/[email protected]
  [email protected]">http://mid.mail-archive.com/[email protected]
  [email protected]">http://mid.mail-archive.com/[email protected]

Patch #11 ("abort harder on memory encryption mask failures") settles
the error handling for MemEncryptSevClearPageEncMask() and
MemEncryptSevSetPageEncMask(), discussed in:

  [email protected]">http://mid.mail-archive.com/[email protected]

Patch #12 ("Unmap(): recycle MAP_INFO after BusMasterCommonBuffer[64]")
implements the "free list" proposed in:

  [email protected]">http://mid.mail-archive.com/[email protected]

The series has been formatted with "--function-context", for easier
review.

Repo:   https://github.com/lersek/edk2.git
Branch: amdsev_iommu_cleanups_fixes

Cc: Ard Biesheuvel <[email protected]>
Cc: Brijesh Singh <[email protected]>
Cc: Jordan Justen <[email protected]>
Cc: Tom Lendacky <[email protected]>

Thanks
Laszlo

Laszlo Ersek (12):
  OvmfPkg/IoMmuDxe: rewrap source code to 79 characters
  OvmfPkg/IoMmuDxe: rename DeviceAddress to PlainTextAddress in MAP_INFO
  OvmfPkg/IoMmuDxe: rename HostAddress to CryptedAddress in MAP_INFO
  OvmfPkg/IoMmuDxe: convert UINTN arguments to UINT64 for the %Lx fmt
    spec
  OvmfPkg/IoMmuDxe: don't initialize local variables
  OvmfPkg/IoMmuDxe: propagate errors from AmdSevInstallIoMmuProtocol()
  OvmfPkg/IoMmuDxe: clean up used library classes
  OvmfPkg/IoMmuDxe: zero out pages before releasing them
  OvmfPkg/IoMmuDxe: rework setup of "MapInfo->PlainTextAddress" in Map()
  OvmfPkg/IoMmuDxe: implement in-place decryption/encryption for
    Map/Unmap
  OvmfPkg/IoMmuDxe: abort harder on memory encryption mask failures
  OvmfPkg/IoMmuDxe: Unmap(): recycle MAP_INFO after
    BusMasterCommonBuffer[64]

 OvmfPkg/IoMmuDxe/IoMmuDxe.inf  |  19 +-
 OvmfPkg/IoMmuDxe/AmdSevIoMmu.h |  14 +-
 OvmfPkg/IoMmuDxe/AmdSevIoMmu.c | 594 ++++++++++++++------
 OvmfPkg/IoMmuDxe/IoMmuDxe.c    |  25 +-
 4 files changed, 447 insertions(+), 205 deletions(-)

-- 
2.13.1.3.g8be5a757fa67

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to