VirtualBox

Changeset 19232 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 28, 2009 10:04:38 AM (16 years ago)
Author:
vboxsync
Message:

Assertions for raw mode & SMP guests.

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

Legend:

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

    r19141 r19232  
    10791079    Log2(("VMMR3RawRunGC: (cs:eip=%04x:%08x)\n", CPUMGetGuestCS(pVCpu), CPUMGetGuestEIP(pVCpu)));
    10801080
     1081    AssertReturn(pVM->cCPUs == 1, VERR_RAW_MODE_INVALID_SMP);
     1082
    10811083    /*
    10821084     * Set the EIP and ESP.
     
    12101212{
    12111213    /* Raw mode implies 1 VCPU. */
    1212     Assert(pVM->cCPUs == 1);
     1214    AssertReturn(pVM->cCPUs == 1, VERR_RAW_MODE_INVALID_SMP);
    12131215    PVMCPU pVCpu = &pVM->aCpus[0];
    12141216
     
    13291331{
    13301332    Log(("VMMR3ResumeHyper: eip=%RRv esp=%RRv\n", CPUMGetHyperEIP(pVCpu), CPUMGetHyperESP(pVCpu)));
     1333    AssertReturn(pVM->cCPUs == 1, VERR_RAW_MODE_INVALID_SMP);
    13311334
    13321335    /*
  • trunk/src/VBox/VMM/VMMAll/PGMAllMap.cpp

    r19175 r19232  
    634634    Log4(("pgmMapActivateCR3: fixed mappings=%d idxShwPageCR3=%#x\n", pVM->pgm.s.fMappingsFixed, pShwPageCR3 ? pShwPageCR3->idx : NIL_PGMPOOL_IDX));
    635635
    636     Assert(pVM->cCPUs == 1);
    637 
    638 #ifdef DEBUG
     636#ifdef VBOX_STRICT
    639637    /* This only applies to raw mode where we only support 1 VCPU. */
    640638    PVMCPU pVCpu = &pVM->aCpus[0];
    641 #endif
    642639    Assert(pShwPageCR3 && pShwPageCR3 == pVCpu->pgm.s.CTX_SUFF(pShwPageCR3));
     640#endif
    643641
    644642    /*
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r19032 r19232  
    552552                bool fVTxDisabled;
    553553
     554                if (RT_UNLIKELY(pVM->cCPUs > 1))
     555                {
     556                    pVM->vmm.s.iLastGZRc = VERR_RAW_MODE_INVALID_SMP;
     557                    return;
     558                }
     559
    554560#ifndef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0
    555561                if (RT_UNLIKELY(!PGMGetHyperCR3(pVCpu)))
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