VirtualBox

Changeset 90460 in vbox


Ignore:
Timestamp:
Aug 1, 2021 8:55:36 PM (3 years ago)
Author:
vboxsync
Message:

VMM: Put the RTTHREAD handle in the VM structure too, so VMMDev can use it for poking EMTs in new testmode. bugref:6695

Location:
trunk
Files:
3 edited

Legend:

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

    r90380 r90460  
    3232#ifndef VBOX_FOR_DTRACE_LIB
    3333# ifndef USING_VMM_COMMON_DEFS
    34 #  error "Compile job does not include VMM_COMMON_DEFS from src/VBox/Config.kmk - make sure you really need to include this file!"
     34#  error "Compile job does not include VMM_COMMON_DEFS from src/VBox/VMM/Config.kmk - make sure you really need to include this file!"
    3535# endif
    3636# include <iprt/param.h>
     
    156156    /** The native R0 thread handle. (different from the R3 handle!) */
    157157    RTNATIVETHREAD          hNativeThreadR0;
     158    /** The IPRT thread handle (for VMMDevTesting). */
     159    RTTHREAD                hThread;
    158160    /** The CPU ID.
    159161     * This is the index into the VM::aCpu array. */
     
    172174     *          following it (to grow into and align the struct size).
    173175     */
    174     uint8_t                 abAlignment1[64 - 5 * (HC_ARCH_BITS == 32 ? 4 : 8) - 8 - 4];
     176    uint8_t                 abAlignment1[64 - 6 * (HC_ARCH_BITS == 32 ? 4 : 8) - 8 - 4];
    175177    /** @} */
    176178
  • trunk/include/VBox/vmm/vm.mac

    r90380 r90460  
    5555    .pVMRC                  resq 1
    5656    .pUVCpu                 RTR3PTR_RES 1
    57     .hNativeThread          RTR0PTR_RES 1
     57    .hNativeThread          RTR3PTR_RES 1
    5858    .hNativeThreadR0        RTR0PTR_RES 1
     59    .hThread                RTR3PTR_RES 1
    5960    .idCpu                  resd 1
    6061
  • trunk/src/VBox/VMM/VMMR3/VM.cpp

    r90397 r90460  
    605605            pVCpu->idCpu             = i;
    606606            pVCpu->hNativeThread     = pUVM->aCpus[i].vm.s.NativeThreadEMT;
     607            pVCpu->hThread           = pUVM->aCpus[i].vm.s.ThreadEMT;
    607608            Assert(pVCpu->hNativeThread != NIL_RTNATIVETHREAD);
    608609            /* hNativeThreadR0 is initialized on EMT registration. */
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