UEFI Unaccepted Memory Support Appears Ready For Linux 6.5

Written by Michael Larabel in Virtualization on 7 June 2023 at 04:25 PM EDT. Add A Comment
VIRTUALIZATION
For over two years Intel open-source engineers have been working on preparing the Linux kernel for UEFI unaccepted memory support and it looks like that will cross the finish line with the upcoming Linux 6.5 cycle.

UEFI unaccepted memory support allows for virtual machines to not "accept" the memory until it's actually needed. Right now all the memory needs to be dealt with at boot time which can delay the boot process but unaccepted memory support can lead to much faster TDX VM boot times as a result. AMD also built off Intel's code for equipping unaccepted memory support into their SEV-SNP path.

This accepting of memory later on / as-needed is laid out in the UEFI 2.9 specification around memory acceptance. Besides leading to lower boot times for Intel TDX and AMD SEV-SNP guest VMs, it also yields lower memory overhead of the systems. The boot time savings can be around 2.5x faster for a VM with 4G of RAM or around 4x faster when being dealt 64G of memory.

Patches made it to tip.git


After going through more than a dozen iterations over the past two years, the UEFI unaccepted memory handling along with the Intel usage of it appears ready for the next kernel. Yesterday the patches were queued up into tip/tip.git's x86/cc branch.

AMD and Intel server CPUs


With the unaccepted memory patches making it now to a TIP branch, barring any last minute issues it's then expected that this feature code will be submitted during the Linux 6.5 merge window opening up around the end of June. The patches prepare unaccepted memory for both Intel Trust Domain Extensions (TDX) and AMD Secure Encrypted Virtualization - Secure Nested Paging (SEV-SNP).
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week