On 2026-10-08 19:00, Sohil Mehta wrote: > > Note, the CPUID bit does not reflect whether the kernel enabled LASS; > only the cpuinfo flag does. But parsing cpuinfo is cumbersome, and the > kernel enables LASS whenever the CPU supports it unless the command line > opts out (vsyscall=emulate or clearcpuid=lass). To keep it simple, rely > on the CPUID bit and accept a failure in these unusual cases. > Cumbersome, really? Here is a set of parsing functions -- tested, even! -- that you can make available as library routines. Integrating them into the selftests build framework has been left as an exercise for the reader ;-) Signed-off-by: H. Peter Anvin (Rosaic) -hpa