mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Deflake cpuid_parse_test.
PiperOrigin-RevId: 632336195
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user