From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id ED5AD740034 for ; Tue, 20 Feb 2024 18:32:41 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=lRxDeQEdkra7aYfXfJb8l8Ttxku63RqBzgNblq+nCWI=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References:In-Reply-To:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1708453960; v=1; b=iOf7wi7PE32dwnMQGxSA/ZOQs1y29ThgugWolvycu9Zg3HdIIDPj3u7XSAlSNFLqr8WyvSIk 1V8UDxBCp7RQAF4c2FK4kvs1G5iQKolEI8e84VKIvUfj2G+CextnqRRMj6jcg/ueYWH/JCLIJ8g qmGedc04UKelfajq6pqPPxWc= X-Received: by 127.0.0.2 with SMTP id o6hgYY7687511xn1QrPqZn5O; Tue, 20 Feb 2024 10:32:40 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.21016.1708453959803302964 for ; Tue, 20 Feb 2024 10:32:39 -0800 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-252-wjpUMgZPO7Wv-XazOYiHRg-1; Tue, 20 Feb 2024 13:32:35 -0500 X-MC-Unique: wjpUMgZPO7Wv-XazOYiHRg-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DD43E811E79; Tue, 20 Feb 2024 18:32:33 +0000 (UTC) X-Received: from [10.39.192.75] (unknown [10.39.192.75]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 73600C185C0; Tue, 20 Feb 2024 18:32:31 +0000 (UTC) Message-ID: <728bba3a-e651-682b-5903-09a872604fe4@redhat.com> Date: Tue, 20 Feb 2024 19:32:29 +0100 MIME-Version: 1.0 Subject: Re: [edk2-devel] [PATCH v3 5/6] OvmfPkg/ResetVector: add 5-level paging support From: "Laszlo Ersek" To: devel@edk2.groups.io, kraxel@redhat.com Cc: Liming Gao , Michael Roth , Oliver Steffen , Erdem Aktas , Tom Lendacky , Min Xu , Ard Biesheuvel , Jiewen Yao References: <20240220090639.472222-1-kraxel@redhat.com> <20240220090639.472222-6-kraxel@redhat.com> <63a3bb77-2ca1-6f6b-6132-492ad5427652@redhat.com> In-Reply-To: <63a3bb77-2ca1-6f6b-6132-492ad5427652@redhat.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: lR1jEiNKm5EL4LQ4P1NOHgmHx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=iOf7wi7P; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io On 2/20/24 18:45, Laszlo Ersek wrote: > (I'm using quotes around "subroutines" and "call" because we don't have > a stack at this point yet, IIUC, so all our "one time calls" are > actually just normal jumps, with some NASM macro magic. That's fine, > we're only talking a handful of assembly instructions here, so > readability definitely trumps code path reuse. SECFV only contains > SecMain and ResetVector, and it's only 26% full -- 56K used, 152K free, > out of 208K total.) Sorry, those numbers were for IA32X64, which is not right for this discussion -- we need to look at X64. NOOPT GCC5 X64 is: SECFV [49%Full] 212992 (0x34000) total, 106000 (0x19e10) used, 106992 (0x1a1f0) free That should still be plenty roomy for disentangling all three code paths here. Laszlo -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115671): https://edk2.groups.io/g/devel/message/115671 Mute This Topic: https://groups.io/mt/104464309/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-