VirtualBox

Changeset 54256 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Feb 17, 2015 11:20:44 PM (10 years ago)
Author:
vboxsync
Message:

VMCPU: Added a iHostCpuSet field to go with the idHostCpu one. This allows for better GIP time & TSC code in raw-mode context.

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

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

    r53795 r54256  
    117117     * Only valid when in RC or HMR0 with scheduling disabled. */
    118118    RTCPUID volatile        idHostCpu;                              /* 56 / 36 */
     119    /** The CPU set index corresponding to idHostCpu, UINT32_MAX if not valid.
     120     * @remarks Best to make sure iHostCpuSet shares cache line with idHostCpu! */
     121    uint32_t volatile       iHostCpuSet;                            /* 60 / 40 */
    119122
    120123    /** Trace groups enable flags.  */
    121     uint32_t                fTraceGroups;                           /* 60 / 40 */
     124    uint32_t                fTraceGroups;                           /* 64 / 44 */
    122125    /** Align the structures below bit on a 64-byte boundary and make sure it starts
    123126     * at the same offset in both 64-bit and 32-bit builds.
     
    128131     *          following it (to grow into and align the struct size).
    129132     *   */
    130     uint8_t                 abAlignment1[HC_ARCH_BITS == 64 ? 60 : 16+64];
     133    uint8_t                 abAlignment1[HC_ARCH_BITS == 64 ? 56 : 12+64];
    131134    /** State data for use by ad hoc profiling. */
    132135    uint32_t                uAdHoc;
  • trunk/include/VBox/vmm/vm.mac

    r53094 r54256  
    123123    .hNativeThreadR0        RTR0PTR_RES 1
    124124    .idHostCpu              resd 1
     125    .iHostCpuSet            resd 1
    125126    .fTraceGroups           resd 1
    126127%if HC_ARCH_BITS == 32
    127     .abAlignment1           resb 16+64
     128    .abAlignment1           resb 12+64
    128129%else
    129     .abAlignment1           resb 60
     130    .abAlignment1           resb 56
    130131%endif
    131132    .uAdHoc                 resd 1
Note: See TracChangeset for help on using the changeset viewer.

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