kernel - Separate XSAVE support from AVX support

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 28 January 2021 01:33 UTC

- XSAVE may be supported without AVX, on certain CPUs and also under hypervisors that expose XSAVEOPT without AVX.

- Always use XSAVE, when supported, regardless of whether AVX is supported or not.

7c656f7b1a kernel - Separate XSAVE support from AVX support
sys/cpu/x86_64/include/cpufunc.h | 9 +++++++--
sys/cpu/x86_64/include/npx.h | 1 +
sys/platform/pc64/x86_64/initcpu.c | 13 ++++++++-----
sys/platform/pc64/x86_64/npx.c | 29 ++++++++++++++++++++++++-----
4 files changed, 40 insertions(+), 12 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share