Skip to content

Conversation

@kuqin12
Copy link
Contributor

@kuqin12 kuqin12 commented Nov 4, 2025

Description

The MM communication buffer memory is being added in MM communication DXE driver through gDS calls:

Status = gDS->AddMemorySpace (

This means that the region should not be reported as available through resource descriptor hob.

This change started with moving all PCD get calls to local variables and then carve out the MM communication buffer from the system memory.

  • Breaking change?
    • Breaking change - Does this PR cause a break in build or boot behavior?
    • Examples: Does it add a new library class or move a module to a different repo.
  • Impacts security?
    • Security - Does this PR have a direct security impact?
    • Examples: Crypto algorithm change or buffer overflow fix.
  • Includes tests?
    • Tests - Does this PR include any explicit test code?
    • Examples: Unit tests or integration tests.

How This Was Tested

This was tested on QEMU SBSA platform and booted to UEFI shell.

Integration Instructions

N/A

Current MemoryPeim has excessive amount of PCD get notations. This makes
the code less readable and introduced long if statements.

This change reads most of the PCD get calls into local variables and
reference the variables instead.

Signed-off-by: Kun Qin <[email protected]>
… mem

The MM communication buffer memory is being added in MM communication DXE
driver through gDS calls. This means that the region should not be
reported as available through resource descriptor hob.

This change will carve out the MM communication buffer from the system
memory hob to prevent gDS failure from MM communication DXE driver.

Signed-off-by: Kun Qin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant