Linux 6.13-rc3 fixes expensive CPUID handling on Sapphire Rapids CPUs — an issue resulting in Skylake CPUs being 4X faster for CPUID-related updates
December 17, 2024

Linux 6.13-rc3 fixes expensive CPUID handling on Sapphire Rapids CPUs — an issue resulting in Skylake CPUs being 4X faster for CPUID-related updates

The Linux team released an intermediate version of Linux 6.13-rc3 to fix a “funny” bug in the core-based virtual machine code – Phoronix reportswhere the processing time for CPUID updates is significantly longer sapphire rapids The CPU is faster than it should be, causing older Skylake CPUs to be 4x faster at CPUID cost.

Phoronix revealed Google Engineers originally discovered this technical issue in how Sapphire Rapids handles CPUID information in nested virtual machines. Specifically, Google’s Sean Christopherson said, “On Intel’s Emerald Rapids, CPUID is so expensive that recalculating XSAVE offsets and sizes results in a 4x increase in latency for nested VM-Enter and VM-Exit (nested conversions trigger xstate_required_size multiple times per conversion ()) ), the problem is easily seen by executing “perf top” when nested conversion is triggered: kvm_update_cpuid_runtime() shows up to 50%…”

2024-12-16 18:20:43

Leave a Reply

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