VirtualBox

Changeset 42402 in vbox


Ignore:
Timestamp:
Jul 26, 2012 4:52:09 AM (12 years ago)
Author:
vboxsync
Message:

VMM: indent.

File:
1 edited

Legend:

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

    r42373 r42402  
    841841        if (!pVM->hwaccm.s.fNestedPaging)
    842842        {
    843             switch(pVCpu->hwaccm.s.enmShadowMode)
     843            switch (pVCpu->hwaccm.s.enmShadowMode)
    844844            {
    845             case PGMMODE_REAL:
    846             case PGMMODE_PROTECTED:     /* Protected mode, no paging. */
    847                 AssertFailed();
    848                 return VERR_PGM_UNSUPPORTED_SHADOW_PAGING_MODE;
    849 
    850             case PGMMODE_32_BIT:        /* 32-bit paging. */
    851                 val &= ~X86_CR4_PAE;
    852                 break;
    853 
    854             case PGMMODE_PAE:           /* PAE paging. */
    855             case PGMMODE_PAE_NX:        /* PAE paging with NX enabled. */
    856                 /** Must use PAE paging as we could use physical memory > 4 GB */
    857                 val |= X86_CR4_PAE;
    858                 break;
    859 
    860             case PGMMODE_AMD64:         /* 64-bit AMD paging (long mode). */
    861             case PGMMODE_AMD64_NX:      /* 64-bit AMD paging (long mode) with NX enabled. */
     845                case PGMMODE_REAL:
     846                case PGMMODE_PROTECTED:     /* Protected mode, no paging. */
     847                    AssertFailed();
     848                    return VERR_PGM_UNSUPPORTED_SHADOW_PAGING_MODE;
     849
     850                case PGMMODE_32_BIT:        /* 32-bit paging. */
     851                    val &= ~X86_CR4_PAE;
     852                    break;
     853
     854                case PGMMODE_PAE:           /* PAE paging. */
     855                case PGMMODE_PAE_NX:        /* PAE paging with NX enabled. */
     856                    /** Must use PAE paging as we could use physical memory > 4 GB */
     857                    val |= X86_CR4_PAE;
     858                    break;
     859
     860                case PGMMODE_AMD64:         /* 64-bit AMD paging (long mode). */
     861                case PGMMODE_AMD64_NX:      /* 64-bit AMD paging (long mode) with NX enabled. */
    862862#ifdef VBOX_ENABLE_64_BITS_GUESTS
    863                 break;
     863                    break;
    864864#else
    865                 AssertFailed();
    866                 return VERR_PGM_UNSUPPORTED_SHADOW_PAGING_MODE;
    867 #endif
    868 
    869             default:                    /* shut up gcc */
    870                 AssertFailed();
    871                 return VERR_PGM_UNSUPPORTED_SHADOW_PAGING_MODE;
     865                    AssertFailed();
     866                    return VERR_PGM_UNSUPPORTED_SHADOW_PAGING_MODE;
     867#endif
     868
     869                default:                    /* shut up gcc */
     870                    AssertFailed();
     871                    return VERR_PGM_UNSUPPORTED_SHADOW_PAGING_MODE;
    872872            }
    873873        }
     
    13811381            {
    13821382                /*
    1383                  * No interrupts are pending, so we don't need to be explicitely notified.
     1383                 * No interrupts are pending, so we don't need to be explicitly notified.
    13841384                 * There are enough world switches for detecting pending interrupts.
    13851385                 */
     
    16191619        Log(("guest.u64LASTEXCPFROM             %RX64\n",   pVMCB->guest.u64LASTEXCPFROM));
    16201620        Log(("guest.u64LASTEXCPTO               %RX64\n",   pVMCB->guest.u64LASTEXCPTO));
    1621 
    16221621#endif
    16231622        rc = VERR_SVM_UNABLE_TO_START_VM;
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