Changeset 42402 in vbox
- Timestamp:
- Jul 26, 2012 4:52:09 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r42373 r42402 841 841 if (!pVM->hwaccm.s.fNestedPaging) 842 842 { 843 switch (pVCpu->hwaccm.s.enmShadowMode)843 switch (pVCpu->hwaccm.s.enmShadowMode) 844 844 { 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. */ 862 862 #ifdef VBOX_ENABLE_64_BITS_GUESTS 863 break;863 break; 864 864 #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; 872 872 } 873 873 } … … 1381 1381 { 1382 1382 /* 1383 * No interrupts are pending, so we don't need to be explicit ely notified.1383 * No interrupts are pending, so we don't need to be explicitly notified. 1384 1384 * There are enough world switches for detecting pending interrupts. 1385 1385 */ … … 1619 1619 Log(("guest.u64LASTEXCPFROM %RX64\n", pVMCB->guest.u64LASTEXCPFROM)); 1620 1620 Log(("guest.u64LASTEXCPTO %RX64\n", pVMCB->guest.u64LASTEXCPTO)); 1621 1622 1621 #endif 1623 1622 rc = VERR_SVM_UNABLE_TO_START_VM;
Note:
See TracChangeset
for help on using the changeset viewer.