VirtualBox

Changeset 43079 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Aug 29, 2012 2:38:33 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80432
Message:

TRPMR3GetImportRC: Don't assert in VMMGetCpu0 with SMP guests. We don't use raw-mode for SMP, so no trouble.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/TRPM.cpp

    r42762 r43079  
    801801    else if (!strcmp(pszSymbol, "g_trpmGuestCtxCore"))
    802802    {
    803         PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(VMMGetCpu0(pVM));
     803        PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(VMMGetCpuById(pVM, 0));
    804804        *pRCPtrValue = VM_RC_ADDR(pVM, CPUMCTX2CORE(pCtx));
    805805    }
    806806    else if (!strcmp(pszSymbol, "g_trpmHyperCtxCore"))
    807807    {
    808         PCPUMCTX pCtx = CPUMGetHyperCtxPtr(VMMGetCpu0(pVM));
     808        PCPUMCTX pCtx = CPUMGetHyperCtxPtr(VMMGetCpuById(pVM, 0));
    809809        *pRCPtrValue = VM_RC_ADDR(pVM, CPUMCTX2CORE(pCtx));
    810810    }
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