From c27c0003c10f0eba04a69dbadb5d4186ea79167e Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Wed, 28 Mar 2018 13:26:35 +0200 Subject: [PATCH] OvmfPkg/PlatformPei: debug log "etc/reserved-memory-end" from fw_cfg QEMU calculates the UINT64 value in "etc/reserved-memory-end" in a quite complex way, in the pc_memory_init() function. Log the value as a DEBUG_VERBOSE message to support debugging. Cc: "Dr. David Alan Gilbert" Cc: Ard Biesheuvel Cc: Jordan Justen Ref: https://bugzilla.redhat.com/show_bug.cgi?id=1353591 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Acked-by: Ard Biesheuvel --- OvmfPkg/PlatformPei/MemDetect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OvmfPkg/PlatformPei/MemDetect.c b/OvmfPkg/PlatformPei/MemDetect.c index 2b2f3e4bec..2f9e835513 100644 --- a/OvmfPkg/PlatformPei/MemDetect.c +++ b/OvmfPkg/PlatformPei/MemDetect.c @@ -358,6 +358,8 @@ GetFirstNonAddress ( if (!EFI_ERROR (Status) && FwCfgSize == sizeof HotPlugMemoryEnd) { QemuFwCfgSelectItem (FwCfgItem); QemuFwCfgReadBytes (FwCfgSize, &HotPlugMemoryEnd); + DEBUG ((DEBUG_VERBOSE, "%a: HotPlugMemoryEnd=0x%Lx\n", __FUNCTION__, + HotPlugMemoryEnd)); ASSERT (HotPlugMemoryEnd >= FirstNonAddress); FirstNonAddress = HotPlugMemoryEnd; -- 2.39.2