VirtualBox

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


Ignore:
Timestamp:
May 21, 2008 3:59:09 PM (17 years ago)
Author:
vboxsync
Message:

Mode switch fixes for nested paging.

File:
1 edited

Legend:

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

    r9026 r9030  
    26262626static void pgmR3ModeDataSwitch(PVM pVM, PGMMODE enmShw, PGMMODE enmGst)
    26272627{
    2628     PPGMMODEDATA pModeData = &pVM->pgm.s.paModeData[pgmModeDataIndex(enmShw, enmGst)];
     2628    PPGMMODEDATA pModeData = &pVM->pgm.s.paModeData[pgmModeDataIndexByMode(enmShw, enmGst)];
    26292629
    26302630    Assert(pModeData->uGstType == pgmModeToType(enmGst));
     
    29812981                rc = PGM_SHW_NAME_AMD64(Enter)(pVM);
    29822982                break;
     2983            case PGMMODE_NESTED:
     2984                rc = PGM_SHW_NAME_NESTED(Enter)(pVM);
     2985                break;
    29832986            case PGMMODE_REAL:
    29842987            case PGMMODE_PROTECTED:
     
    30153018                    rc2 = PGM_BTH_NAME_PAE_REAL(Enter)(pVM, NIL_RTGCPHYS);
    30163019                    break;
     3020                case PGMMODE_NESTED:
     3021                    rc2 = PGM_BTH_NAME_NESTED_REAL(Enter)(pVM, NIL_RTGCPHYS);
     3022                    break;
    30173023                case PGMMODE_AMD64:
    30183024                case PGMMODE_AMD64_NX:
     
    30333039                    rc2 = PGM_BTH_NAME_PAE_PROT(Enter)(pVM, NIL_RTGCPHYS);
    30343040                    break;
     3041                case PGMMODE_NESTED:
     3042                    rc2 = PGM_BTH_NAME_NESTED_PROT(Enter)(pVM, NIL_RTGCPHYS);
     3043                    break;
    30353044                case PGMMODE_AMD64:
    30363045                case PGMMODE_AMD64_NX:
     
    30513060                case PGMMODE_PAE_NX:
    30523061                    rc2 = PGM_BTH_NAME_PAE_32BIT(Enter)(pVM, GCPhysCR3);
     3062                    break;
     3063                case PGMMODE_NESTED:
     3064                    rc2 = PGM_BTH_NAME_NESTED_32BIT(Enter)(pVM, GCPhysCR3);
    30533065                    break;
    30543066                case PGMMODE_AMD64:
     
    30843096                    rc2 = PGM_BTH_NAME_PAE_PAE(Enter)(pVM, GCPhysCR3);
    30853097                    break;
     3098                case PGMMODE_NESTED:
     3099                    rc2 = PGM_BTH_NAME_NESTED_PAE(Enter)(pVM, GCPhysCR3);
     3100                    break;
    30863101                case PGMMODE_32_BIT:
    30873102                case PGMMODE_AMD64:
     
    31023117                case PGMMODE_AMD64_NX:
    31033118                    rc2 = PGM_BTH_NAME_AMD64_AMD64(Enter)(pVM, GCPhysCR3);
     3119                    break;
     3120                case PGMMODE_NESTED:
     3121                    rc2 = PGM_BTH_NAME_NESTED_AMD64(Enter)(pVM, GCPhysCR3);
    31043122                    break;
    31053123                case PGMMODE_32_BIT:
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