By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Linux Patches Improve Intel Nested VM Memory Performance Up To ~2353x In Synthetic Test
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Linux Patches Improve Intel Nested VM Memory Performance Up To ~2353x In Synthetic Test
Computing

Linux Patches Improve Intel Nested VM Memory Performance Up To ~2353x In Synthetic Test

News Room
Last updated: 2025/11/23 at 6:52 AM
News Room Published 23 November 2025
Share
Linux Patches Improve Intel Nested VM Memory Performance Up To ~2353x In Synthetic Test
SHARE

AWS engineers have been working on Linux kernel improvements to KVM’s VMX code for enhancing the unamanged guest memory when dealing with nested virtual machines. The improved code addresses some correctness issues as well as delivering wild performance improvements within a synthetic benchmark.

On Friday Amazon/AWS engineer Fred Griffoul sent out the latest patches to the KVM nVMX code for improving the performance of unmanaged guest memory. Fred explained of the issue with the current code and the improvement being made:

“This patch series addresses both performance and correctness issues in nested VMX when handling guest memory.

During nested VMX operations, L0 (KVM) accesses specific L1 guest pages to manage L2 execution. These pages fall into two categories: pages accessed only by L0 (such as the L1 MSR bitmap page or the eVMCS page), and pages passed to the L2 guest via vmcs02 (such as APIC access, virtual APIC, and posted interrupt descriptor pages).

The current implementation uses kvm_vcpu_map/unmap, which causes two issues.

First, the current approach is missing proper invalidation handling in critical scenarios. Enlightened VMCS (eVMCS) pages can become stale when memslots are modified, as there is no mechanism to invalidate the cached mappings. Similarly, APIC access and virtual APIC pages can be migrated by the host, but without proper notification through mmu_notifier callbacks, the mappings become invalid and can lead to incorrect behavior.

Second, for unmanaged guest memory (memory not directly mapped by the kernel, such as memory passed with the mem= parameter or guest_memfd for non-CoCo VMs), this workflow invokes expensive memremap/memunmap operations on every L2 VM entry/exit cycle. This creates significant overhead that impacts nested virtualization performance.

This series replaces kvm_host_map with gfn_to_pfn_cache in nested VMX. The pfncache infrastructure maintains persistent mappings as long as the page GPA does not change, eliminating the memremap/memunmap overhead on every VM entry/exit cycle. Additionally, pfncache provides proper invalidation handling via mmu_notifier callbacks and memslots generation check, ensuring that mappings are correctly updated during both memslot updates and page migration events.”

The end result is pretty wild with a synthetic micro-benchmark to demonstrate the improvement for nested VMX operations with unmanaged guest memory. Using AWS EC2 Nitro instances, their synthetic micro-benchmark showed the memory map performance being around 17x faster, unmap chunked being ~2014x faster, and unmap being ~2353x faster!

AWS synthetic benchmark results

Those interested can find this pending patch series on the Linux kernel mailing list.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article This credit-card–sized tracker keeps tabs on your wallet, passport, and IDs — and now it’s under This credit-card–sized tracker keeps tabs on your wallet, passport, and IDs — and now it’s under $24
Next Article Glibc Math Code Sees 4x Improvement On AMD Zen By Changing FMA Implementation Glibc Math Code Sees 4x Improvement On AMD Zen By Changing FMA Implementation
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Gurman: ‘Few signs internally’ point to Tim Cook stepping down as CEO early next year – 9to5Mac
Gurman: ‘Few signs internally’ point to Tim Cook stepping down as CEO early next year – 9to5Mac
News
Do Galaxy Watch owners actually use Gemini? Survey reveals surprising results
Do Galaxy Watch owners actually use Gemini? Survey reveals surprising results
News
Foxconn and OpenAI strike deal to co-develop next-gen AI hardware in the US · TechNode
Foxconn and OpenAI strike deal to co-develop next-gen AI hardware in the US · TechNode
Computing
No More Gatekeeping: Coffee Experts on How to Make the Perfect Espresso Shots at Home
No More Gatekeeping: Coffee Experts on How to Make the Perfect Espresso Shots at Home
News

You Might also Like

Foxconn and OpenAI strike deal to co-develop next-gen AI hardware in the US · TechNode
Computing

Foxconn and OpenAI strike deal to co-develop next-gen AI hardware in the US · TechNode

1 Min Read
POV You Created an AI Business Partner in 20 Minutes
Computing

POV You Created an AI Business Partner in 20 Minutes

12 Min Read
How to Make an AI Twin with BigVu in 3 Easy Steps
Computing

How to Make an AI Twin with BigVu in 3 Easy Steps

13 Min Read
Glibc Math Code Sees 4x Improvement On AMD Zen By Changing FMA Implementation
Computing

Glibc Math Code Sees 4x Improvement On AMD Zen By Changing FMA Implementation

1 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?