VirtualBox

Changeset 107900 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jan 22, 2025 8:04:36 PM (3 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/vm.h

    r107895 r107900  
    12201220                        (rc))
    12211221
     1222#if defined(USING_VMM_COMMON_DEFS) || defined(DOXYGEN_RUNNING)
     1223/* Some VMM_COMMON_DEFS defines that actively changes the VM/VMCPU structures
     1224   that we bake into the VM_STRUCT_VERSION value. */
     1225# ifdef VBOX_WITH_MINIMAL_R0
     1226#  define VM_STRUCT_VERSION_F_31    RT_BIT_32(31)
     1227# else
     1228#  define VM_STRUCT_VERSION_F_31    UINT32_C(0)
     1229# endif
     1230# ifdef VBOX_WITH_ONLY_PGM_NEM_MODE
     1231#  define VM_STRUCT_VERSION_F_30    RT_BIT_32(30)
     1232# else
     1233#  define VM_STRUCT_VERSION_F_30    UINT32_C(0)
     1234# endif
     1235# ifdef VBOX_WITH_PGM_NEM_MODE
     1236#  define VM_STRUCT_VERSION_F_29    RT_BIT_32(29)
     1237# else
     1238#  define VM_STRUCT_VERSION_F_29    UINT32_C(0)
     1239# endif
     1240# ifdef VBOX_WITH_HWVIRT
     1241#  define VM_STRUCT_VERSION_F_28    RT_BIT_32(28)
     1242# else
     1243#  define VM_STRUCT_VERSION_F_28    UINT32_C(0)
     1244# endif
     1245
     1246/** @define VM_STRUCT_VERSION
     1247 * The current VM structure version number.  */
     1248# define VM_STRUCT_VERSION          (  UINT32_C(2) \
     1249                                     | VM_STRUCT_VERSION_F_31 \
     1250                                     | VM_STRUCT_VERSION_F_30 \
     1251                                     | VM_STRUCT_VERSION_F_29 \
     1252                                     | VM_STRUCT_VERSION_F_28 )
     1253#endif
     1254
     1255
    12221256#endif /* !VBOX_FOR_DTRACE_LIB */
    12231257
     
    13561390    /** Size of the VMCPU structure. */
    13571391    uint32_t                    cbVCpu;
    1358     /** Structure version number (TBD). */
     1392    /** Structure version number (VM_STRUCT_VERSION). */
    13591393    uint32_t                    uStructVersion;
    13601394
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