diff options
author | Michael Pratt <mpratt@google.com> | 2019-02-13 11:58:49 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-02-13 11:59:59 -0800 |
commit | 2c7488454e7fcbf98c00bcdceb70cb8e2fa98c96 (patch) | |
tree | 503725fe64b26613ce4501193a007408128c3d1c /pkg/cpuid/cpuid_parse_test.go | |
parent | 3ff9dc9cc1f69605f9e9e3c028d81957c37349a3 (diff) |
Expose XSAVES in /proc/cpuinfo
Linux started doing this in b8be15d588060a03569ac85dc4a0247460988f5b
("x86/fpu/xstate: Re-enable XSAVES"), which first appeared in 4.8.
PiperOrigin-RevId: 233800931
Change-Id: Icac2c2b03ccf1a91f3070431efb5152ca619fca3
Diffstat (limited to 'pkg/cpuid/cpuid_parse_test.go')
-rw-r--r-- | pkg/cpuid/cpuid_parse_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/cpuid/cpuid_parse_test.go b/pkg/cpuid/cpuid_parse_test.go index 954ed53b6..88e75c110 100644 --- a/pkg/cpuid/cpuid_parse_test.go +++ b/pkg/cpuid/cpuid_parse_test.go @@ -114,6 +114,11 @@ func TestHostFeatureFlags(t *testing.T) { // PKU only exposed in dfb4a70f20c5b3880da56ee4c9484bdb4e8f1e65 // (4.9). continue + // Block 4. + case f == X86FeatureXSAVES && (major < 4 || major == 4 && minor < 8): + // XSAVES only exposed in + // b8be15d588060a03569ac85dc4a0247460988f5b (4.8). + continue } hidden := f.flagString(true) == "" |