3 ms·
The typical x86 extension query (cpuid) is an unpriviliged user-mode instruction — unless the application takes care to ask the OS, there's no real way for the
by loeg 6y ago
The typical x86 extension query (cpuid) is an unpriviliged user-mode instruction — unless the application takes care to ask the OS, there's no real way for the OS to select the common denominator.
Edit: Also: AVX2 is a lot older than Skylake. You're probably thinking of AVX512.
- kllrnohj 6y agoThe OS could still intercept CPUID - this is, after all, what VMs do. But it looks like Intel is doing this anyway, as Sunny Cove in this application has had its AVX-512 removed anyway: "One thing we can confirm in advance – the Sunny Cove does not appear to be AVX-512 enabled."
- saagarjha 6y agoWell then you need to set up a VMM for the OS…
- loeg 6y agoRunning every thread in a hypervisor just to trap cpuid sounds like extreme overkill. And probably some applications want the features only available on the big core, and masking those out doesn't solve that end of the problem.