git: nvmm(4): Rename CR0_STATIC_MASK and CR0_MANDATORY for clarity

Aaron LI aly at crater.dragonflybsd.org
Mon Feb 16 04:10:31 PST 2026


commit 1659ab5f403b9a39916299b4cfa45a55073f9066
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Feb 15 22:05:01 2026 +0800

    nvmm(4): Rename CR0_STATIC_MASK and CR0_MANDATORY for clarity
    
    The CR0_STATIC_MASK was copied from the VMX backend but does not
    accurately reflect its semantics in the SVM context, where the masked
    bits are forced to zero.  Rename it to CR0_FORCE_ZERO and remove
    the CR0_ET bit from it.
    
    In addition, rename CR0_MANDATORY to CR0_FORCE_ONE to make the naming
    consistent and reflect that these bits are always set.

Summary of changes:
 sys/dev/virtual/nvmm/x86/nvmm_x86_svm.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1659ab5f403b9a39916299b4cfa45a55073f9066


-- 
DragonFly BSD source repository


More information about the Commits mailing list