VirtualBox

Changeset 19259 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 29, 2009 12:45:19 PM (16 years ago)
Author:
vboxsync
Message:

Fixes for guest smp assertions

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/DBGF.cpp

    r19217 r19259  
    386386static int dbgfR3EventPrologue(PVM pVM, DBGFEVENTTYPE enmEvent)
    387387{
    388     PVMCPU pVCpu = VMMGetCpu0(pVM);
     388    PVMCPU pVCpu = VMMGetCpu(pVM);
    389389
    390390    /*
  • trunk/src/VBox/VMM/PATM/VMMAll/PATMAll.cpp

    r19141 r19259  
    299299VMMDECL(bool) PATMAreInterruptsEnabled(PVM pVM)
    300300{
    301     PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(VMMGetCpu0(pVM));
     301    PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(VMMGetCpu(pVM));
    302302
    303303    return PATMAreInterruptsEnabledByCtxCore(pVM, CPUMCTX2CORE(pCtx));
  • trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp

    r19141 r19259  
    3535#include <iprt/asm.h>
    3636#include <iprt/assert.h>
     37#ifndef IN_RC
     38# include <iprt/thread.h>
     39#endif
    3740#ifdef IN_RING3
    3841# include <iprt/semaphore.h>
     
    221224#ifdef IN_RING3
    222225    return RTCritSectIsOwner(&pCritSect->s.Core);
     226#elif defined(IN_RING0)
     227    PVM pVM = pCritSect->s.CTX_SUFF(pVM);
     228    Assert(pVM);
     229    return pCritSect->s.Core.NativeThreadOwner == RTThreadNativeSelf();
    223230#else
    224231    PVM pVM = pCritSect->s.CTX_SUFF(pVM);
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