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 C8E82941B42 for ; Wed, 21 Feb 2024 13:31:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=86m2/RafKLrcjns9oQ/Gjhjq+dOwlA+PAgU1Wuxd0yM=; c=relaxed/simple; d=groups.io; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20140610; t=1708522308; v=1; b=alkmuZ61h4+2LExajrLVjEOKD2fu8XhjPI+RiCDax2KJUaYuS73pEJCOzTdF2YLZ5eegnjCh OguDXFnkvO4NzVE5/HR5EASI2aOcaMul7qNNWwwoVznCWkHD/pylMc3bOvW5wu7y3ICg62dxrCb 1jhkovrwKQIIVFYb0owDQnbY= X-Received: by 127.0.0.2 with SMTP id SVjLYY7687511xHwLcQCRVfs; Wed, 21 Feb 2024 05:31:48 -0800 X-Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by mx.groups.io with SMTP id smtpd.web10.12883.1708522307831902566 for ; Wed, 21 Feb 2024 05:31:47 -0800 X-Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 4E98E61508 for ; Wed, 21 Feb 2024 13:31:47 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E679EC43399 for ; Wed, 21 Feb 2024 13:31:46 +0000 (UTC) X-Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-512bb2ed1f7so4063832e87.3 for ; Wed, 21 Feb 2024 05:31:46 -0800 (PST) X-Gm-Message-State: jgWhdId9l40XCS6ro45zeqEIx7686176AA= X-Google-Smtp-Source: AGHT+IEkcmdPEbYral5RAjIhd6zVLQrLdty8Wqq3dFT8iORspEsUpgFDW8Ew/tBzg+Mk1pA2d+nTIX142ny07cB0tPs= X-Received: by 2002:a19:7404:0:b0:512:9d0e:2ca5 with SMTP id v4-20020a197404000000b005129d0e2ca5mr8462331lfe.39.1708522305130; Wed, 21 Feb 2024 05:31:45 -0800 (PST) MIME-Version: 1.0 References: <20240220090639.472222-1-kraxel@redhat.com> In-Reply-To: <20240220090639.472222-1-kraxel@redhat.com> From: "Ard Biesheuvel" Date: Wed, 21 Feb 2024 14:31:32 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [edk2-devel] [PATCH v3 0/6] OvmfPkg: Add support for 5-level paging To: Gerd Hoffmann Cc: devel@edk2.groups.io, Liming Gao , Michael Roth , Oliver Steffen , Erdem Aktas , Tom Lendacky , Laszlo Ersek , Min Xu , Ard Biesheuvel , Jiewen Yao 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,ardb@kernel.org List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=alkmuZ61; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=kernel.org (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 Tue, 20 Feb 2024 at 10:06, Gerd Hoffmann wrote: > > Patch #1 + #2 fix MdeModulePkg/DxeIplPeim to not assert in case a > 5-level enabled build runs in 4-level paging mode. > > Patch #2 - #4 update OvmfPkg ResetVector, adding support for 5-level > paging (setup 5-level page tables in case both la57 and gigabyte pages > are supported by the vCPU). > > Patch #5 updates PlatformInitLib for 5-level paging support (update > PhysBits calculation). > > Known issues / limitations: > - BaseMemEncryptSevLib must be updated to also support 5-level > paging for full 5-level paging support in SEV mode. > > The patch series does *not* enable 5-level paging by default. > Building with 5-level paging support can be done by compiling > OVMF with '--pcd PcdUse5LevelPageTable=TRUE'. > > 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 (6): > MdeModulePkg/DxeIplPeim: fix PcdUse5LevelPageTable assert > MdeModulePkg/DxeIplPeim: rename variable > OvmfPkg/ResetVector: improve page table flag names > OvmfPkg/ResetVector: SEV: keep #vc handler installed longer > OvmfPkg/ResetVector: add 5-level paging support > OvmfPkg/PlatformInitLib: add 5-level paging support > I'm fine with all this but I haven't looked in great detail, so Acked-by: Ard Biesheuvel -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115726): https://edk2.groups.io/g/devel/message/115726 Mute This Topic: https://groups.io/mt/104464306/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-