git: nvmm(4): Fix the XSAVE area size
Aaron LI
aly at crater.dragonflybsd.org
Fri Aug 7 00:23:37 PDT 2026
commit 0d1bb899f923a47c114c141692d1f1db237c02b1
Author: Aaron LI <aly at aaronly.me>
Date: Thu Aug 6 07:43:29 2026 +0800
nvmm(4): Fix the XSAVE area size
- Fix nvmm_x86_xsave_size(): x87/SSE are in the legacy region, and the
size of that region is constant regardless of whether SSE is enabled.
- When XSAVEC is supported, CPUID leaf 0x0000000D:ECX=1[EBX] is supposed
to return the current XSAVE area size, but NVMM mistakenly returns
zero. Given that NVMM supports only x87/SSE, XSAVEC is useless, so
rather than fixing the EBX return value, just don't advertise XSAVEC.
Credit: Maxime Villard (m00nbsd)
Summary of changes:
sys/dev/virtual/nvmm/x86/nvmm_x86.c | 13 +++++++------
sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 1 -
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 1 -
3 files changed, 7 insertions(+), 8 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0d1bb899f923a47c114c141692d1f1db237c02b1
--
DragonFly BSD source repository
More information about the Commits
mailing list