From: "Gerd Hoffmann" <kraxel@redhat.com>
To: Dun Tan <dun.tan@intel.com>
Cc: devel@edk2.groups.io, Ray Ni <ray.ni@intel.com>,
Laszlo Ersek <lersek@redhat.com>,
Rahul Kumar <rahul1.kumar@intel.com>
Subject: Re: [edk2-devel] [Patch V4] UefiCpuPkg:Limit PhysicalAddressBits in special case
Date: Fri, 12 Jan 2024 12:50:43 +0100 [thread overview]
Message-ID: <kjc2na34lvugi55rhhlwiu6lnrhoaur54liqjruhiu5ddr3nqu@trbx53zed67y> (raw)
In-Reply-To: <20240112083142.230-1-dun.tan@intel.com>
Hi,
> + //
> + // 4-level paging supports translating 48-bit linear addresses to 52-bit physical addresses.
> + // Since linear addresses are sign-extended, the linear-address space of 4-level paging is:
> + // [0, 2^47-1] and [0xffff8000_00000000, 0xffffffff_ffffffff].
> + // So only [0, 2^47-1] linear-address range maps to the identical physical-address range when
> + // 5-Level paging is disabled.
> + //
> + ASSERT (PhysicalAddressBits <= 52);
> + if (!Is5LevelPagingNeeded && (PhysicalAddressBits > 47)) {
> + PhysicalAddressBits = 47;
> + }
Nice.
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
take care,
Gerd
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#113723): https://edk2.groups.io/g/devel/message/113723
Mute This Topic: https://groups.io/mt/103679520/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2024-01-12 11:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-12 8:31 [edk2-devel] [Patch V4] UefiCpuPkg:Limit PhysicalAddressBits in special case duntan
2024-01-12 11:50 ` Gerd Hoffmann [this message]
[not found] <17A98C68C98872BA.16441@groups.io>
2024-01-12 8:49 ` duntan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=kjc2na34lvugi55rhhlwiu6lnrhoaur54liqjruhiu5ddr3nqu@trbx53zed67y \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox