From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=209.132.183.28; helo=mx1.redhat.com; envelope-from=lersek@redhat.com; receiver=edk2-devel@lists.01.org Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 2C5F520359A83 for ; Fri, 10 Nov 2017 07:45:15 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CB892C0546CF; Fri, 10 Nov 2017 15:49:17 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-145.rdu2.redhat.com [10.10.120.145]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7CA4B5D9C8; Fri, 10 Nov 2017 15:49:16 +0000 (UTC) From: Laszlo Ersek To: edk2-devel-01 Cc: Ard Biesheuvel , Jordan Justen , Ruiyu Ni Date: Fri, 10 Nov 2017 16:49:04 +0100 Message-Id: <20171110154908.306-1-lersek@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 10 Nov 2017 15:49:17 +0000 (UTC) Subject: [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: Fri, 10 Nov 2017 15:45:15 -0000 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 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