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 855277803DE for ; Thu, 22 Feb 2024 10:54:14 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=dpA3D3si0815mSGO8kRK4mSdLfDaFux1/l5spLrvLtY=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding; s=20140610; t=1708599253; v=1; b=aNTeFfnPzhR52Eb2DMNh0jXyocAggRvlGBh51RoM/DUqPF3IBT16uDUKlRvXMGqIpz92T7ly z32ezAJ/h0IvLE2hTP0jL/4bqgmbgBZbeuZXR7SNeBQ6Ch/DX+PDID9fk05nqIv/4SDOS2gFANS /zNNSNMe0shAcGPyScw3DfP8= X-Received: by 127.0.0.2 with SMTP id AvNaYY7687511xTGU9kBfuUx; Thu, 22 Feb 2024 02:54:13 -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.web10.10180.1708599252632925323 for ; Thu, 22 Feb 2024 02:54:12 -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-240-h_Xm6FxfM3GylAznGJcyAg-1; Thu, 22 Feb 2024 05:54:10 -0500 X-MC-Unique: h_Xm6FxfM3GylAznGJcyAg-1 X-Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 838DD185A781; Thu, 22 Feb 2024 10:54:09 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.237]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 272772166AEE; Thu, 22 Feb 2024 10:54:08 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 144D418007A1; Thu, 22 Feb 2024 11:54:07 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Michael Roth , Jiewen Yao , Liming Gao , Laszlo Ersek , Tom Lendacky , Paolo Bonzini , Ard Biesheuvel , Gerd Hoffmann , Min Xu , Erdem Aktas , Oliver Steffen Subject: [edk2-devel] [PATCH v4 0/3] OvmfPkg: Add support for 5-level paging Date: Thu, 22 Feb 2024 11:54:04 +0100 Message-ID: <20240222105407.75735-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 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,kraxel@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: EU5GHchdcfPmeu2qUHWmpmjfx7686176AA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=aNTeFfnP; 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 Patch #1 + #2 fix MdeModulePkg/DxeIplPeim to not assert in case a 5-level enabled build runs in 4-level paging mode. Patch #3 updates PlatformInitLib for 5-level paging support (update PhysBits calculation). v4: - drop OvmfPkg/ResetVecor changes, they will be sent as separate patch series. - add Ard's ack. v3: - add resetvector fixes for sev and tdx v2 changes: - fix sev/tdx handling with 5-level paging. - more comments for 5-level page table setup. - improve PAGE_* naming (new patch #3). - rename Page5LevelSupported to Page5LevelEnabled (new patch #2). - pick up some review tags. Gerd Hoffmann (3): MdeModulePkg/DxeIplPeim: fix PcdUse5LevelPageTable assert MdeModulePkg/DxeIplPeim: rename variable OvmfPkg/PlatformInitLib: add 5-level paging support .../Core/DxeIplPeim/X64/VirtualMemory.c | 24 +++---- OvmfPkg/Library/PlatformInitLib/MemDetect.c | 63 +++++++++++++------ 2 files changed, 57 insertions(+), 30 deletions(-) -- 2.43.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115797): https://edk2.groups.io/g/devel/message/115797 Mute This Topic: https://groups.io/mt/104506109/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-