KVM Virtualization With Linux 6.9 Brings More Optimizations For Intel & AMD

Written by Michael Larabel in Virtualization on 24 March 2024 at 11:00 AM EDT. 20 Comments
VIRTUALIZATION
The Kernel-based Virtual Machine changes for Linux 6.9 continue to enhance the capabilities of the open-source Linux virtualization software stack.

For KVM on x86 (x86_64) there is an optimization to triggering of emulated events. Developers found this provides a nice approximate 10% performance improvement for VM-Exit micro-benchmarks.

There is also some improvements as a result of reworking the code around "force immediate exit" on x86_64 so that vendor code decides how and when to force the exit. This allows optimizations for both AMD and Intel processors.

There are also various other smaller optimizations and code improvements. The KVM x86 Xen emulation code has also seen some improvements for Linux 6.9.

AMD EPYC CPUs


Another change worth noting from the KVM pull request is AMD now reports a "ept_5level" flag in /proc/cpuinfo for VMX supporting 5-level EPT paging. This user-space ability to query 5-level paging support is important since the MSRs indicating support aren't easily accessible by user-space. This information is needed so user-space can correctly configure KVM virtual machines on AMD 5-level paging configurations.

Over on the KVM RISC-V side is support for the Ztso and Zacas extensions. LoongArch and ARM have also seen various minor enhancements this cycle.

More details on the KVM changes for Linux 6.9 via this pull that was already merged. Linux 6.9-rc1 should be out later today to culminate the Linux 6.9 merge window.
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