VOOZH about

URL: https://www.phoronix.com/news/Linux-Patch-AMD-CPUID-Faulting

⇱ AMD Preps Linux Support For User CPUID Faulting - Phoronix


👁 Phoronix

AMD Preps Linux Support For User CPUID Faulting

Written by Michael Larabel in AMD on 9 June 2025 at 03:11 PM EDT. 2 Comments
While Intel has supported CPUID Faulting on processors going back to Ivy Bridge and supported this feature in the Linux kernel since early 2017, only now the AMD support is being wired up and making use of the existing Intel code paths.

CPUID Faulting is a feature for having the processor fault on attempts to execute a CPUID instruction above privilege level zero (CPL 0 / Ring 0). In turn this can be used for a tracer to emulate the CPUID instruction and similar use-cases like by some VMMs/hypervisors for trapping user-space CPUID instructions.

While long supported by Intel CPUs with Ivy Bridge in 2012 and the Linux kernel since 2017, only last week was an AMD patch posted for CPUID Faulting support.

👁 AMD User CPUID Faulting


This patch introduces CPUID faulting support on AMD using the same user interface as Intel. The patch doesn't specify what generations of AMD CPUs are capable of natively supporting User CPUID Faulting.

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.