VirtualBox

Changeset 9575 in vbox


Ignore:
Timestamp:
Jun 10, 2008 3:28:27 PM (17 years ago)
Author:
vboxsync
Message:

Missing mapping of amd64 cr3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllGst.h

    r9542 r9575  
    398398{
    399399#if PGM_GST_TYPE == PGM_TYPE_32BIT \
    400  || PGM_GST_TYPE == PGM_TYPE_PAE
     400 || PGM_GST_TYPE == PGM_TYPE_PAE \
     401 || PGM_GST_TYPE == PGM_TYPE_AMD64
    401402
    402403    LogFlow(("MapCR3: %VGp\n", GCPhysCR3));
     
    418419            pVM->pgm.s.pGuestPDGC = (RCPTRTYPE(PX86PD))pVM->pgm.s.GCPtrCR3Mapping;
    419420
    420 # else /* PAE */
     421# elif PGM_GST_TYPE == PGM_TYPE_PAE
    421422            unsigned offset = GCPhysCR3 & GST_CR3_PAGE_MASK & PAGE_OFFSET_MASK;
    422423            pVM->pgm.s.pGstPaePDPTHC = (R3R0PTRTYPE(PX86PDPT)) HCPtrGuestCR3;
     
    454455                PGM_INVL_PG(GCPtr);
    455456            }
     457# elif PGM_GST_TYPE == PGM_TYPE_AMD64
     458            pVM->pgm.s.pGstPaePML4HC = (R3R0PTRTYPE(PX86PML4))HCPtrGuestCR3;
    456459# endif
    457460        }
     
    462465        AssertMsgFailed(("rc=%Vrc GCPhysGuestPD=%VGp\n", rc, GCPhysCR3));
    463466
    464 #else /* prot/real/amd64 mode stub */
     467#else /* prot/real stub */
    465468    int rc = VINF_SUCCESS;
    466469#endif
     
    496499
    497500#elif PGM_GST_TYPE == PGM_TYPE_AMD64
    498     /* nothing to do; vt-x/amd-v only */
    499 
     501    pVM->pgm.s.pGstPaePML4HC = 0;
    500502#else /* prot/real mode stub */
    501503    /* nothing to do */
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