git: nvmm(4): Explicitly specify sub-leaf 0 for CPUID 0x00000007
Aaron LI
aly at crater.dragonflybsd.org
Fri Aug 7 00:23:35 PDT 2026
commit 7f42a237da6d069a91c472611fe4edff0d55025a
Author: Aaron LI <aly at aaronly.me>
Date: Wed Aug 5 20:01:35 2026 +0800
nvmm(4): Explicitly specify sub-leaf 0 for CPUID 0x00000007
The 0x00000007 (Structured Extended Feature Flags) leaf has sub-leaves,
so use x86_get_cpuid2() to explicitly specify the sub-leaf for
correctness and portability.
See also the commit 0087a1d163488a57787a9a6431dd94070b1988d4 that fixes
do_cpuid() to explicitly set ECX=0.
Summary of changes:
sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7f42a237da6d069a91c472611fe4edff0d55025a
--
DragonFly BSD source repository
More information about the Commits
mailing list