git: libnvmm(3): Fix segment limits calc and support expand-down segments

Aaron LI aly at crater.dragonflybsd.org
Tue Sep 1 06:09:04 PDT 2026


commit 7a50a5b05c268d3438aba3fa95d625788508a099
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Aug 31 20:23:29 2026 +0800

    libnvmm(3): Fix segment limits calc and support expand-down segments
    
    The SVM/VMX hardware already calculates the segment limits in bytes
    taking the G bit into account, so fix the emulator not to miscompute
    the limits, and add a unit-test to ensure correctness.
    
    Support expand-down segments and extend the 32bit segment limit
    unit-test to ensure correctness.
    
    Obtained-from: NVMM Reference Implementation

Summary of changes:
 lib/libnvmm/libnvmm_x86.c                 |  27 ++--
 test/testcases/libnvmm/h_mem_assist.c     | 246 ++++++++++++++++++++++++++++++
 test/testcases/libnvmm/h_mem_assist_asm.S |  19 +++
 3 files changed, 283 insertions(+), 9 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7a50a5b05c268d3438aba3fa95d625788508a099


-- 
DragonFly BSD source repository


More information about the Commits mailing list