Deflake cpuid_parse_test.

PiperOrigin-RevId: 632336195
This commit is contained in:
Jamie Liu
2024-05-09 18:56:44 -07:00
committed by gVisor bot
parent 13c9b723e8
commit e77a65a7ff
+8
View File
@@ -54,6 +54,14 @@ func archSkipFeature(feature Feature, version hostos.Version) bool {
// PERFCTR_LLC renamed in
// 910448bbed066ab1082b510eef1ae61bb792d854 (4.14).
return true
// Block 7.
case feature == X86FeatureARCH_CAPABILITIES:
// This feature is sometimes added by CPU microcode loaded by the
// kernel, in which case it will appear in CPUID but not /proc/cpuinfo.
// This can be detected from a "x86/CPU: CPU features have changed
// after loading microcode, but might not take effect" message printed
// to dmesg by arch/x86/kernel/cpu/common.c:microcode_check().
return true
default:
return false
}