Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 84690e91a4b3d7e0d17d8ba9c32dc2289cce381a
      
https://github.com/tianocore/edk2/commit/84690e91a4b3d7e0d17d8ba9c32dc2289cce381a
  Author: Luigi Leonardi <[email protected]>
  Date:   2026-07-20 (Mon, 20 Jul 2026)

  Changed paths:
    M OvmfPkg/Include/Library/QemuFwCfgSimpleParserLib.h
    M OvmfPkg/Library/QemuFwCfgSimpleParserLib/QemuFwCfgSimpleParser.c

  Log Message:
  -----------
  OvmfPkg/QemuFwCfgSimpleParserLib: export QemuFwCfgGetAsString()

Make QemuFwCfgGetAsString() a public EFIAPI entry point instead of
a STATIC helper, so it can be used by consumers that need the raw
fw_cfg string value rather than a parsed boolean or integer.

Signed-off-by: Luigi Leonardi <[email protected]>


  Commit: f4bbef1dd7c15bec5ac164802842d55d740c36fe
      
https://github.com/tianocore/edk2/commit/f4bbef1dd7c15bec5ac164802842d55d740c36fe
  Author: Luigi Leonardi <[email protected]>
  Date:   2026-07-20 (Mon, 20 Jul 2026)

  Changed paths:
    M ArmVirtPkg/ArmVirtCloudHv.dsc
    M ArmVirtPkg/ArmVirtPkg.dec
    M ArmVirtPkg/ArmVirtQemuKernel.dsc
    M ArmVirtPkg/Include/Guid/EarlyPL011BaseAddress.h
    M ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLib.c
    M ArmVirtPkg/Library/DebugLibFdtPL011Uart/DebugLibFdtPL011UartFlash.inf
    M ArmVirtPkg/Library/DebugLibFdtPL011Uart/Flash.c
    M ArmVirtPkg/Library/DebugLibFdtPL011Uart/Ram.c
    M ArmVirtPkg/Library/DebugLibFdtPL011Uart/Write.h
    M ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.c
    M ArmVirtPkg/Library/PlatformPeiLib/PlatformPeiLib.inf

  Log Message:
  -----------
  ArmVirtPkg: introduce compile and runtime control of serial debug log level

Add a new PCD `PcdSerialDebugPrintErrorLevel` that overrides the verbosity
set in `DebugPrintErrorLevel` for the serial port debug output and does
not affect memory debug logging.

Accepted values are:
- "silent": DEBUG_ERROR only
- "verbose": use the `DebugPrintErrorLevel` value.
- a hex bitmask (e.g. "0x80000040").

This PCD value can be overridden at runtime using the fw_cfg entry
"opt/org.tianocore/DebugLevel" without rebuilding the firmware.

The runtime override takes priority over the compile-time one. When
neither is set, the serial output uses the compiled-in
PcdDebugPrintErrorLevel.

SEC and PEI_CORE phases do not support this override because they run
from flash, where global variables are not available. Supporting it
would require parsing the device tree on every debug write to locate
the fw_cfg device and read the DebugLevel value — unnecessary overhead
given the low volume of logs in those phases.

ParseSerialDebugLevel() is duplicated as a STATIC function in Flash.c
and PlatformPeiLib.c rather than shared via a header, because EDK2
coding style forbids function definitions in headers. A dedicated
library class would be excessive for a small helper with only two
consumers.

Example QEMU command line:

  -fw_cfg name=opt/org.tianocore/DebugLevel,string=silent
  -fw_cfg name=opt/org.tianocore/DebugLevel,string=verbose
  -fw_cfg name=opt/org.tianocore/DebugLevel,string=0x80000000

Suggested-by: Gerd Hoffmann <[email protected]>
Signed-off-by: Luigi Leonardi <[email protected]>


  Commit: af41063d814bb93dc8e72f7c94c09b513b28870d
      
https://github.com/tianocore/edk2/commit/af41063d814bb93dc8e72f7c94c09b513b28870d
  Author: Luigi Leonardi <[email protected]>
  Date:   2026-07-20 (Mon, 20 Jul 2026)

  Changed paths:
    M OvmfPkg/RUNTIME_CONFIG.md

  Log Message:
  -----------
  OvmfPkg: document DebugLevel runtime config

Add documentation for the DebugLevel runtime config that sets the
verbosity of the serial debug log level on ArmVirt.

Signed-off-by: Luigi Leonardi <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/6c6d0a72c25e...af41063d814b

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to