VirtualBox

Changeset 32046 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Aug 27, 2010 12:42:37 PM (14 years ago)
Author:
vboxsync
Message:

VMCPU: Added some STAMPROFILEADV members for ad hoc cross moduel use.

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r31782 r32046  
    107107     * Only valid when in RC or HWACCMR0 with scheduling disabled. */
    108108    RTCPUID volatile        idHostCpu;
    109 
     109    /** State data for use by ad hoc profiling. */
     110    uint32_t                uAdHoc;
     111    /** Profiling samples for use by ad hoc profiling. */
     112    STAMPROFILEADV          aStatAdHoc[8];
     113
     114#if HC_ARCH_BITS == 32
    110115    /** Align the next bit on a 64-byte boundary and make sure it starts at the same
    111116     *  offset in both 64-bit and 32-bit builds.
     
    116121     *          following it (to grow into and align the struct size).
    117122     *   */
    118     uint8_t                 abAlignment1[HC_ARCH_BITS == 32 ? 24 : 4];
     123    uint8_t                 abAlignment1[HC_ARCH_BITS == 32 ? 20 : 0];
     124#endif
    119125
    120126    /** CPUM part. */
     
    201207
    202208    /** Align the following members on page boundrary. */
    203     uint8_t                 abAlignment2[576];
     209    uint8_t                 abAlignment2[256];
    204210
    205211    /** PGM part. */
     
    468474 * Checks if a force action flag is set for the given VCPU.
    469475 *
    470  * @param   pVCpu     VMCPU Handle.
     476 * @param   pVCpu   VMCPU Handle.
    471477 * @param   fFlag   The flag to check.
    472478 */
    473 #define VMCPU_FF_ISSET(pVCpu, fFlag)  (((pVCpu)->fLocalForcedActions & (fFlag)) == (fFlag))
     479#define VMCPU_FF_ISSET(pVCpu, fFlag)        (((pVCpu)->fLocalForcedActions & (fFlag)) == (fFlag))
    474480
    475481/** @def VM_FF_ISPENDING
  • trunk/include/VBox/vm.mac

    r31732 r32046  
    123123    .hNativeThreadR0        RTR0PTR_RES 1
    124124    .idHostCpu              resd 1
     125    .uAdHoc                 resd 1
     126    .aStatAdHoc             resb STAMPROFILEADV_size * 8
    125127
    126128    alignb 64
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