VirtualBox

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


Ignore:
Timestamp:
Feb 13, 2007 2:09:53 PM (18 years ago)
Author:
vboxsync
Message:

Some release logging, mainly for debugging the 64-bit restore issue.

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

Legend:

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

    r838 r873  
    629629    pVM->pgm.s.apInterPaePDs[3] = (PX86PDPAE)MMR3PageAlloc(pVM);
    630630    pVM->pgm.s.pInterPaePDPTR   = (PX86PDPTR)MMR3PageAllocLow(pVM);
    631 #if 1
    632631    pVM->pgm.s.pInterPaePDPTR64 = (PX86PDPTR)MMR3PageAllocLow(pVM);
    633 #endif
    634632    pVM->pgm.s.pInterPaePML4    = (PX86PML4)MMR3PageAllocLow(pVM);
    635633    if (    !pVM->pgm.s.pInterPD
     
    643641        ||  !pVM->pgm.s.apInterPaePDs[3]
    644642        ||  !pVM->pgm.s.pInterPaePDPTR
    645 #if 1
    646643        ||  !pVM->pgm.s.pInterPaePDPTR64
    647 #endif
    648644        ||  !pVM->pgm.s.pInterPaePML4)
    649645    {
     
    659655    AssertRelease(pVM->pgm.s.HCPhysInterPaePML4 != NIL_RTHCPHYS && !(pVM->pgm.s.HCPhysInterPaePML4 & PAGE_OFFSET_MASK));
    660656
    661 #if 1 /* let's see if this is the cause of the problems... */
    662657    /*
    663658     * Initialize the pages, setting up the PML4 and PDPTR for repetitive 4GB action.
     
    689684        pVM->pgm.s.pInterPaePML4->a[i].u = X86_PML4E_P | X86_PML4E_RW | X86_PML4E_US | X86_PML4E_A | PGM_PLXFLAGS_PERMANENT
    690685                                         | HCPhysInterPaePDPTR64;
    691 #else
    692     /*
    693      * Initialize the pages, setting up the PML4 and PDPTR for action below 4GB.
    694      */
    695     ASMMemZero32(pVM->pgm.s.pInterPD, PAGE_SIZE);
    696     ASMMemZero32(pVM->pgm.s.apInterPTs[0], PAGE_SIZE);
    697     ASMMemZero32(pVM->pgm.s.apInterPTs[1], PAGE_SIZE);
    698 
    699     ASMMemZero32(pVM->pgm.s.apInterPaePTs[0], PAGE_SIZE);
    700     ASMMemZero32(pVM->pgm.s.apInterPaePTs[1], PAGE_SIZE);
    701 
    702     ASMMemZero32(pVM->pgm.s.pInterPaePDPTR, PAGE_SIZE);
    703     for (unsigned i = 0; i < ELEMENTS(pVM->pgm.s.apInterPaePDs); i++)
    704     {
    705         ASMMemZero32(pVM->pgm.s.apInterPaePDs[i], PAGE_SIZE);
    706         pVM->pgm.s.pInterPaePDPTR->a[i].u = X86_PDPE_P | PGM_PLXFLAGS_PERMANENT
    707                                           | MMPage2Phys(pVM, pVM->pgm.s.apInterPaePDs[i]);
    708     }
    709 
    710     ASMMemZero32(pVM->pgm.s.pInterPaePML4, PAGE_SIZE);
    711     pVM->pgm.s.pInterPaePML4->a[0].u = X86_PML4E_P | X86_PML4E_RW | X86_PML4E_US | X86_PML4E_A
    712                                      | pVM->pgm.s.HCPhysInterPaePDPTR;
    713 #endif
    714 
    715686
    716687    /*
     
    808779    {
    809780        LogFlow(("pgmR3InitPaging: returns successfully\n"));
     781#if HC_ARCH_BITS == 64
     782LogRel(("Debug: HCPhys32BitPD=%VHp aHCPhysPaePDs={%VHp,%VHp,%VHp,%VHp} HCPhysPaePDPTR=%VHp HCPhysPaePML4=%VHp\n",
     783        pVM->pgm.s.HCPhys32BitPD, pVM->pgm.s.aHCPhysPaePDs[0], pVM->pgm.s.aHCPhysPaePDs[1], pVM->pgm.s.aHCPhysPaePDs[2], pVM->pgm.s.aHCPhysPaePDs[3],
     784        pVM->pgm.s.HCPhysPaePDPTR, pVM->pgm.s.HCPhysPaePML4));
     785LogRel(("Debug: HCPhysInterPD=%VHp HCPhysInterPaePDPTR=%VHp HCPhysInterPaePML4=%VHp\n",
     786        pVM->pgm.s.HCPhysInterPD, pVM->pgm.s.HCPhysInterPaePDPTR, pVM->pgm.s.HCPhysInterPaePML4));
     787LogRel(("Debug: apInterPTs={%VHp,%VHp} apInterPaePTs={%VHp,%VHp} apInterPaePDs={%VHp,%VHp,%VHp,%VHp} pInterPaePDPTR64=%VHp\n",
     788        MMPage2Phys(pVM, pVM->pgm.s.apInterPTs[0]), MMPage2Phys(pVM, pVM->pgm.s.apInterPTs[1]),
     789        MMPage2Phys(pVM, pVM->pgm.s.apInterPaePTs[0]), MMPage2Phys(pVM, pVM->pgm.s.apInterPaePTs[1]),
     790        MMPage2Phys(pVM, pVM->pgm.s.apInterPaePDs[0]), MMPage2Phys(pVM, pVM->pgm.s.apInterPaePDs[1]), MMPage2Phys(pVM, pVM->pgm.s.apInterPaePDs[2]), MMPage2Phys(pVM, pVM->pgm.s.apInterPaePDs[3]),
     791        MMPage2Phys(pVM, pVM->pgm.s.pInterPaePDPTR64)));
     792#endif
     793
    810794        return VINF_SUCCESS;
    811795    }
     
    15311515        {
    15321516            AssertMsg((GCPtr >> PGDIR_SHIFT << PGDIR_SHIFT) == GCPtr, ("GCPtr=%VGv\n", GCPtr));
     1517#if HC_ARCH_BITS == 64
     1518LogRel(("Mapping: %VGv -> %VGv %s\n", pMapping->GCPtr, GCPtr, pMapping->pszDesc));
     1519#endif
    15331520            pgmR3MapRelocate(pVM, pMapping, pMapping->GCPtr >> PGDIR_SHIFT, GCPtr >> PGDIR_SHIFT);
    15341521        }
  • trunk/src/VBox/VMM/VMM.cpp

    r847 r873  
    303303        {
    304304            MMR3HyperReserve(pVM, PAGE_SIZE, "fence", NULL);
     305            LogRel(("CoreCode: R3=%VHv R0=%VHv GC=%VGv Phys=%VHp cb=%#x\n",
     306                    pVM->vmm.s.pvHCCoreCodeR3, pVM->vmm.s.pvHCCoreCodeR0, pVM->vmm.s.pvGCCoreCode, pVM->vmm.s.HCPhysCoreCode, pVM->vmm.s.cbCoreCode));
     307
    305308            /*
    306309             * Finally, PGM probably have selected a switcher already but we need
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