From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4001:c06::241; helo=mail-io0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-io0-x241.google.com (mail-io0-x241.google.com [IPv6:2607:f8b0:4001:c06::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BB0D022106DC4 for ; Wed, 28 Mar 2018 05:50:49 -0700 (PDT) Received: by mail-io0-x241.google.com with SMTP id q84so3411229iod.10 for ; Wed, 28 Mar 2018 05:57:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=OeYTZxS1boz/XZxD9Rcje7FKZUkHuaBGYUGNcnKHyVU=; b=djKNvxzTXZetmAn5lu7i6/lNgBvZKqqQm+VCB+0fkwIEAHNG9F9SqeQEWHzs3Xx2Pz EnMjK5zrLlpOy+2oM7rdo4A5ITx98uhPgtyUwZ8bpCkl3XH45xlgkCasyhVXvBLP6rnL V9Qn/HY9an1oBhkYNk/DrXPAbI1fcdYO7tvk8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OeYTZxS1boz/XZxD9Rcje7FKZUkHuaBGYUGNcnKHyVU=; b=TUIqcohiozdVg8KTHfdhDIoiv/jo3HjLHDg0cNTnF53VyW1d0n5dtSCSdPrW7IC9gw /W20DxikcuC9273DQSHJaitb1DgvM89j8HPQDdMSTFk3yAD+c7IWdbdNMPOJrZs39iO6 rlYCJ55HMVnZT3r4Bo7suuoxGt/hlodCET58U3Ia+1w3OxtS1VLBlrnomtEKXhtQWuR/ iWjQb0jzgjnexhsndW7adBptsUlDxnzrG6OSGBdv8xILWcMlazN8woBqujUKxB3E06xS 8UG5fm2Ze8AmZzxqDbm0gSCyT9bPl1CKUWFnq1HhBCLaZzwLqgCL7EZshr9bmKg6nRC8 r15g== X-Gm-Message-State: AElRT7Gm7eBz2d4F+KSv8CKrVxtJn3WK7VDMniTY85mV4vjAhbLZIFeA 9mBGznaXM3fLiEu/9CPVTfVCAHNF9jsvVhKFwGSfKQ== X-Google-Smtp-Source: AIpwx4/h3daIoBjQjDOMcdpqldlhOPIi2IwluI84Q4E/xfnNifq5OMikWMAK+zC6zcl5hSVvStXCtjSAt6fJ72tTui8= X-Received: by 10.107.139.212 with SMTP id n203mr5882227iod.107.1522241847297; Wed, 28 Mar 2018 05:57:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.187.67 with HTTP; Wed, 28 Mar 2018 05:57:26 -0700 (PDT) In-Reply-To: <20180328113857.22788-1-lersek@redhat.com> References: <20180328113857.22788-1-lersek@redhat.com> From: Ard Biesheuvel Date: Wed, 28 Mar 2018 14:57:26 +0200 Message-ID: To: Laszlo Ersek Cc: edk2-devel-01 , "Dr. David Alan Gilbert" , Jordan Justen Subject: Re: [PATCH] OvmfPkg/PlatformPei: debug log "etc/reserved-memory-end" from fw_cfg X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Mar 2018 12:50:50 -0000 Content-Type: text/plain; charset="UTF-8" On 28 March 2018 at 13:38, Laszlo Ersek wrote: > 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 2b2f3e4bec55..2f9e83551364 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.14.1.3.gb7cf6e02401b >