VirtualBox

Changeset 45786 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Apr 26, 2013 10:35:59 PM (12 years ago)
Author:
vboxsync
Message:

Move HMRCA.asm into the switcher code so we don't need VMMRC.rc.

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

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

    r45739 r45786  
    259259}
    260260
    261 
    262 #ifdef VBOX_WITH_RAW_MODE_NOT_R0
     261#ifndef PGM_WITHOUT_MAPPINGS
     262
    263263/**
    264264 * Sets all PDEs involved with the mapping in the shadow page table.
     
    357357                if (!pgmPoolIsPageLocked(pPoolPagePd))
    358358                    pgmPoolLockPage(pPool, pPoolPagePd);
    359 #ifdef VBOX_STRICT
     359# ifdef VBOX_STRICT
    360360                else if (pShwPaePd->a[iPaePde].u & PGM_PDFLAGS_MAPPING)
    361361                {
     
    369369                                   ("%RX64 vs %RX64\n", pShwPaePd->a[iPaePde+1].u & X86_PDE_PAE_PG_MASK, pMap->aPTs[i].HCPhysPaePT1));
    370370                }
    371 #endif
     371# endif
    372372
    373373                /*
     
    542542    PGM_DYNMAP_UNUSED_HINT_VM(pVM, pCurrentShwPdpt);
    543543}
    544 #endif /* VBOX_WITH_RAW_MODE_NOT_R0 */
    545 
     544
     545#endif /* PGM_WITHOUT_MAPPINGS */
    546546#if defined(VBOX_STRICT) && !defined(IN_RING0)
     547
    547548/**
    548549 * Clears all PDEs involved with the mapping in the shadow page table.
     
    653654    pgmUnlock(pVM);
    654655}
     656
    655657#endif /* defined(VBOX_STRICT) && !defined(IN_RING0) */
    656 
    657 #ifdef VBOX_WITH_RAW_MODE_NOT_R0
     658#ifndef PGM_WITHOUT_MAPPINGS
    658659
    659660/**
     
    741742    if (!pgmMapAreMappingsFloating(pVM))
    742743        return false;
    743 
    744     Assert(pVM->cCpus == 1);
     744    AssertReturn(pgmMapAreMappingsEnabled(pVM), false);
    745745
    746746    /* This only applies to raw mode where we only support 1 VCPU. */
     
    771771                    STAM_COUNTER_INC(&pVM->pgm.s.CTX_SUFF(pStats)->StatR3DetectedConflicts);
    772772
    773 #ifdef IN_RING3
     773# ifdef IN_RING3
    774774                    Log(("PGMHasMappingConflicts: Conflict was detected at %08RX32 for mapping %s (32 bits)\n"
    775775                         "                        iPDE=%#x iPT=%#x PDE=%RGp.\n",
    776776                        (iPT + iPDE) << X86_PD_SHIFT, pCur->pszDesc,
    777777                        iPDE, iPT, pPD->a[iPDE + iPT].au32[0]));
    778 #else
     778# else
    779779                    Log(("PGMHasMappingConflicts: Conflict was detected at %08RX32 for mapping (32 bits)\n"
    780780                         "                        iPDE=%#x iPT=%#x PDE=%RGp.\n",
    781781                        (iPT + iPDE) << X86_PD_SHIFT,
    782782                        iPDE, iPT, pPD->a[iPDE + iPT].au32[0]));
    783 #endif
     783# endif
    784784                    return true;
    785785                }
     
    802802                {
    803803                    STAM_COUNTER_INC(&pVM->pgm.s.CTX_SUFF(pStats)->StatR3DetectedConflicts);
    804 #ifdef IN_RING3
     804# ifdef IN_RING3
    805805                    Log(("PGMHasMappingConflicts: Conflict was detected at %RGv for mapping %s (PAE)\n"
    806806                         "                        PDE=%016RX64.\n",
    807807                        GCPtr, pCur->pszDesc, Pde.u));
    808 #else
     808# else
    809809                    Log(("PGMHasMappingConflicts: Conflict was detected at %RGv for mapping (PAE)\n"
    810810                         "                        PDE=%016RX64.\n",
    811811                        GCPtr, Pde.u));
    812 #endif
     812# endif
    813813                    return true;
    814814                }
     
    866866                    STAM_COUNTER_INC(&pVM->pgm.s.CTX_SUFF(pStats)->StatR3DetectedConflicts);
    867867
    868 #ifdef IN_RING3
     868# ifdef IN_RING3
    869869                    Log(("PGMHasMappingConflicts: Conflict was detected at %08RX32 for mapping %s (32 bits)\n"
    870870                         "                        iPDE=%#x iPT=%#x PDE=%RGp.\n",
     
    874874                    AssertRCReturn(rc, rc);
    875875                    break;
    876 #else
     876# else
    877877                    Log(("PGMHasMappingConflicts: Conflict was detected at %08RX32 for mapping (32 bits)\n"
    878878                         "                        iPDE=%#x iPT=%#x PDE=%RGp.\n",
     
    880880                         iPDE, iPT, pPD->a[iPDE + iPT].au32[0]));
    881881                    return VINF_PGM_SYNC_CR3;
    882 #endif
     882# endif
    883883                }
    884884            }
     
    931931}
    932932
    933 #endif /* VBOX_WITH_RAW_MODE_NOT_R0 */
    934 
     933#endif /* PGM_WITHOUT_MAPPINGS */
     934
  • trunk/src/VBox/VMM/VMMAll/SELMAll.cpp

    r45725 r45786  
    867867#endif
    868868
     869
    869870#ifdef VBOX_WITH_RAW_MODE_NOT_R0
    870 
    871871/**
    872872 * Gets ss:esp for ring1 in main Hypervisor's TSS.
     
    954954    return VINF_SUCCESS;
    955955}
    956 
     956#endif /* VBOX_WITH_RAW_MODE_NOT_R0 */
     957
     958
     959#if defined(VBOX_WITH_RAW_MODE) || (HC_ARCH_BITS != 64 && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL))
    957960
    958961/**
     
    10281031}
    10291032
    1030 #endif /* VBOX_WITH_RAW_MODE_NOT_R0 */
     1033#endif /* defined(VBOX_WITH_RAW_MODE) || (HC_ARCH_BITS != 64 && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)) */
    10311034
    10321035/**
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