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::243; helo=mail-io0-x243.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-io0-x243.google.com (mail-io0-x243.google.com [IPv6:2607:f8b0:4001:c06::243]) (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 B0FDE20356868 for ; Sat, 11 Nov 2017 01:10:53 -0800 (PST) Received: by mail-io0-x243.google.com with SMTP id h70so15923083ioi.4 for ; Sat, 11 Nov 2017 01:14:57 -0800 (PST) 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=/V8GAuyS2WKIFxh3gMaLdYeBkIOOiFcbn/ygAFatwH4=; b=etO93W2GhHpj8Eoxu8E87zYm9xUIDv97mSvRIF71kirbA77MqY6+5IsKz4rXoDrIx0 ZkwhVTqmBZ97MlHxIJprU11ZhmTyv9zb1odmueVy0gDlRcMsfcgpwwatmpYepTjhL1Do EYxZgK0HZAyocTpCjKLJ6b3RxCZL5twnmHgPM= 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=/V8GAuyS2WKIFxh3gMaLdYeBkIOOiFcbn/ygAFatwH4=; b=o+uG50vBkUcpVzcyYf69h8y0hFChR9h97oSzP5fSP9QwZpVCfBMa3Lbfotl/MMyOTR vTs70Rv+mpu72UZc/xDHykU9BGUNUFbonILUPR5wZ678tDfCyy+g8Q/+thuk3p4JS/Gy b+b61DQL7YxWuocEerMeE66xg7J3p9oKdI0uxOhYKcBbkhG/pfTYrj9nShn6cWhvc+O8 5VF9lyV6RIHlI98Oq68At6nDCKlRc1d73fthG2PxnIcRAzCE1XEeqKW0fUMDDSOOecV8 I35si8BpFC/tx+k0Gui6p64MIip1vvJr08TE6UxQBdFLDI3bzWsVm3f/xh1VCDeBb1bE bGHw== X-Gm-Message-State: AJaThX5ajGThdtyiO0UGfZ0MoaAjZo8CRObLeGviJJZU0YW/R2UH1tIh A132GVBwh2Y4XGPbddbhNbgIg+rAGfmpf8XbU6VVMA== X-Google-Smtp-Source: AGs4zMa31mdvMkZHmbGrgZegH+1DZM0I+460+HqDYVjQANGUOQvrQlme6YyXzrfGe+x1VgtobkMS6TCb38S/wpoB9CA= X-Received: by 10.107.174.206 with SMTP id n75mr3293998ioo.43.1510391696985; Sat, 11 Nov 2017 01:14:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.104.20 with HTTP; Sat, 11 Nov 2017 01:14:56 -0800 (PST) In-Reply-To: <20171110154908.306-1-lersek@redhat.com> References: <20171110154908.306-1-lersek@redhat.com> From: Ard Biesheuvel Date: Sat, 11 Nov 2017 09:14:56 +0000 Message-ID: To: Laszlo Ersek Cc: edk2-devel-01 , Jordan Justen , Ruiyu Ni Subject: Re: [PATCH 0/4] OvmfPkg: measure temp stack usage, restore temp RAM to 64KB X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Nov 2017 09:10:53 -0000 Content-Type: text/plain; charset="UTF-8" On 10 November 2017 at 15:49, Laszlo Ersek wrote: > The first three patches enable the PEI_CORE to report OVMF's temp > SEC/PEI stack and heap usage. > > - This depends on the new fixed PCD "PcdInitValueInTempStack", > recently added for > > ("INIT_CAR_VALUE should be defined in a central location"). > > - Ard recently implemented the same in ArmPlatformPkg, for > ("measure temp > SEC/PEI stack usage"). > > The last (fourth) patch adapts OVMF to the larger MtrrLib stack demand > that originates from commit 2bbd7e2fbd4b ("UefiCpuPkg/MtrrLib: Update > algorithm to calculate optimal settings", 2017-09-27). OVMF's temp RAM > size is restored to the historical / original 64KB. > > This work is tracked in > ("measure temp > SEC/PEI stack usage; grow temp SEC/PEI RAM"), with links to related > mailing list discussions. > > Repo: https://github.com/lersek/edk2.git > Branch: temp_ram_tweaks > > Cc: Ard Biesheuvel > Cc: Jordan Justen > Cc: Ruiyu Ni > > Thanks > Laszlo > > Laszlo Ersek (4): > OvmfPkg/Sec/Ia32: free up EAX for other uses while setting up the > stack > OvmfPkg/Sec/Ia32: seed the temporary RAM with PcdInitValueInTempStack > OvmfPkg/Sec/X64: seed the temporary RAM with PcdInitValueInTempStack > OvmfPkg: restore temporary SEC/PEI RAM size to 64KB > Reviewed-by: Ard Biesheuvel > OvmfPkg/OvmfPkgIa32.fdf | 2 +- > OvmfPkg/OvmfPkgIa32X64.fdf | 2 +- > OvmfPkg/OvmfPkgX64.fdf | 2 +- > OvmfPkg/Sec/SecMain.inf | 1 + > OvmfPkg/Sec/Ia32/SecEntry.nasm | 19 ++++++++++++++++--- > OvmfPkg/Sec/X64/SecEntry.nasm | 15 +++++++++++++++ > 6 files changed, 35 insertions(+), 6 deletions(-) > > -- > 2.14.1.3.gb7cf6e02401b >