VirtualBox

Changeset 31359 in vbox for trunk/include


Ignore:
Timestamp:
Aug 4, 2010 3:31:04 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64410
Message:

Keep track of the native R0 thread handle for each EMT too. Use that to find the right VCPU

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r31326 r31359  
    102102    /** The native thread handle. */
    103103    RTNATIVETHREAD          hNativeThread;
     104    /** The native R0 thread handle. (different from the R3 handle!) */
     105    RTNATIVETHREAD          hNativeThreadR0;
    104106    /** Which host CPU ID is this EMT running on.
    105107     * Only valid when in RC or HWACCMR0 with scheduling disabled. */
     
    114116     *          following it (to grow into and align the struct size).
    115117     *   */
    116     uint8_t                 abAlignment1[HC_ARCH_BITS == 32 ? 28 : 12];
     118    uint8_t                 abAlignment1[HC_ARCH_BITS == 32 ? 24 : 4];
    117119
    118120    /** CPUM part. */
  • trunk/include/VBox/vm.mac

    r31326 r31359  
    120120
    121121    .hNativeThread          RTR0PTR_RES 1
     122    .hNativeThreadR0        RTR0PTR_RES 1
    122123    .idHostCpu              resd 1
    123124
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