Skip to content

Conversation

@kraxel
Copy link
Member

@kraxel kraxel commented Dec 4, 2025

edk2 log files became quite chatty in recent years, with the
extended use of paging for confidential computing and for
page attributes (using NX / WP to improve firmware security).

This series adds a new debug log bit (DEBUG_PAGING) for all
messages related to page table updates, to allow turning these
messages on and off independent from other messages.

A number of log messages have been changed from DEBUG_VERBOSE
to DEBUG_PAGING. These are the paging-related messages I've
noticed when booting OVMF and ArmVirt. Most likely there are
more in the code base, but I want gather some feedback on the
idea before going hunt them all down.

  • MdePkg/DebugLib: add DEBUG_PAGING
  • OvmfPkg/BaseMemEncryptSevLib: DEBUG_VERBOSE -> DEBUG_PAGING
  • UefiCpuPkg/CpuDxe: DEBUG_VERBOSE -> DEBUG_PAGING
  • UefiCpuPkg/ArmMmuLib: DEBUG_VERBOSE -> DEBUG_PAGING

Add new log bit for all paging-related log messages, i.e. page table
updates because of memory encryption or memory attribute changes.

Signed-off-by: Gerd Hoffmann <[email protected]>
Use new DEBUG_PAGING log bit in OvmfPkg/BaseMemEncryptSevLib.

Signed-off-by: Gerd Hoffmann <[email protected]>
Use new DEBUG_PAGING log bit in UefiCpuPkg/CpuDxe.

Signed-off-by: Gerd Hoffmann <[email protected]>
Use new DEBUG_PAGING log bit in UefiCpuPkg/ArmMmuLib.

Signed-off-by: Gerd Hoffmann <[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.

2 participants