git: nvmm(4): Refine VMX guest CR0 (VMCS_GUEST_CR0) handling

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


commit 112a43ec4e9cf7ac65007f87619f5981d5142843
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Feb 16 00:25:13 2026 +0800

    nvmm(4): Refine VMX guest CR0 (VMCS_GUEST_CR0) handling
    
    Introduce CR0_FORCE_ZERO and CR0_FORCE_ONE to align with the SVM backend
    and clarify the normalization of guest CR0 (VMCS_GUEST_CR0).  Do not
    reuse CR0_STATIC_MASK in place of CR0_FORCE_ZERO to avoid ambiguity.
    
    No functional change.

Summary of changes:
 sys/dev/virtual/nvmm/x86/nvmm_x86_vmx.c | 35 +++++++++++++++------------------
 1 file changed, 16 insertions(+), 19 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/112a43ec4e9cf7ac65007f87619f5981d5142843


-- 
DragonFly BSD source repository


More information about the Commits mailing list