VirtualBox

Changeset 107900 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jan 22, 2025 8:04:36 PM (2 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167124
Message:

VMM: Define VM_STRUCT_VERSION (for use inside the VMM) with a few VMM_COMMON_DEFS defines baked into the value. jiraref:1470

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp

    r107893 r107900  
    811811        return VINF_GVM_MISMATCH_VMCPU_SIZE;
    812812    }
    813     if (pReq->uStructVersion != 1)
    814     {
    815         LogRel(("GVMMR0CreateVMReq: uStructVersion=%#x, expcted %#x\n", pReq->uStructVersion, 1));
     813    if (pReq->uStructVersion != VM_STRUCT_VERSION)
     814    {
     815        LogRel(("GVMMR0CreateVMReq: uStructVersion=%#x, expcted %#x\n", pReq->uStructVersion, VM_STRUCT_VERSION));
    816816        return VINF_GVM_MISMATCH_VM_STRUCT_VER;
    817817    }
     
    11671167    pGVM->cCpusUnsafe      = cCpus;
    11681168    pGVM->uCpuExecutionCap = 100; /* default is no cap. */
    1169     pGVM->uStructVersion   = 1;
     1169    pGVM->uStructVersion   = VM_STRUCT_VERSION;
    11701170    pGVM->cbSelf           = sizeof(VM);
    11711171    pGVM->cbVCpu           = sizeof(VMCPU);
  • trunk/src/VBox/VMM/VMMR3/GVMMR3.cpp

    r107893 r107900  
    7272        CreateVMReq.cbVM            = sizeof(VM);
    7373        CreateVMReq.cbVCpu          = sizeof(VMCPU);
    74         CreateVMReq.uStructVersion  = 1;
     74        CreateVMReq.uStructVersion  = VM_STRUCT_VERSION;
    7575        CreateVMReq.uSvnRevision    = VMMGetSvnRev();
    7676        CreateVMReq.pVMR0           = NIL_RTR0PTR;
     
    109109        pVM->cbSelf               = sizeof(VM);
    110110        pVM->cbVCpu               = sizeof(VMCPU);
    111         pVM->uStructVersion       = 1;
     111        pVM->uStructVersion       = VM_STRUCT_VERSION;
    112112        pVM->enmTarget            = enmTarget;
    113113
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette