- Timestamp:
- Oct 9, 2008 8:46:19 AM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r13099 r13106 846 846 #include "PGMShw.h" 847 847 848 #ifdef VBOX_WITH_64_BITS_GUESTS 848 849 /* Guest - AMD64 mode */ 849 850 #define PGM_GST_TYPE PGM_TYPE_AMD64 … … 867 868 #undef PGM_GST_NAME_RC_STR 868 869 #undef PGM_GST_NAME_R0_STR 870 #endif 869 871 870 872 #undef PGM_SHW_TYPE … … 962 964 #undef PGM_GST_NAME_R0_STR 963 965 966 #ifdef VBOX_WITH_64_BITS_GUESTS 964 967 /* Guest - AMD64 mode */ 965 968 #define PGM_GST_TYPE PGM_TYPE_AMD64 … … 982 985 #undef PGM_GST_NAME_RC_STR 983 986 #undef PGM_GST_NAME_R0_STR 987 #endif 984 988 985 989 #undef PGM_SHW_TYPE … … 1077 1081 #undef PGM_GST_NAME_R0_STR 1078 1082 1083 #ifdef VBOX_WITH_64_BITS_GUESTS 1079 1084 /* Guest - AMD64 mode */ 1080 1085 #define PGM_GST_TYPE PGM_TYPE_AMD64 … … 1097 1102 #undef PGM_GST_NAME_RC_STR 1098 1103 #undef PGM_GST_NAME_R0_STR 1104 #endif 1099 1105 1100 1106 #undef PGM_SHW_TYPE … … 2737 2743 rc = PGM_BTH_NAME_PAE_PAE(InitData)( pVM, pModeData, fResolveGCAndR0); AssertRCReturn(rc, rc); 2738 2744 2745 #ifdef VBOX_WITH_64_BITS_GUESTS 2739 2746 pModeData = &pVM->pgm.s.paModeData[pgmModeDataIndex(PGM_TYPE_AMD64, PGM_TYPE_AMD64)]; 2740 2747 pModeData->uShwType = PGM_TYPE_AMD64; … … 2743 2750 rc = PGM_GST_NAME_AMD64(InitData)( pVM, pModeData, fResolveGCAndR0); AssertRCReturn(rc, rc); 2744 2751 rc = PGM_BTH_NAME_AMD64_AMD64(InitData)( pVM, pModeData, fResolveGCAndR0); AssertRCReturn(rc, rc); 2752 #endif 2745 2753 2746 2754 /* The nested paging mode. */ … … 2769 2777 rc = PGM_BTH_NAME_NESTED_PAE(InitData)( pVM, pModeData, fResolveGCAndR0); AssertRCReturn(rc, rc); 2770 2778 2779 #ifdef VBOX_WITH_64_BITS_GUESTS 2771 2780 pModeData = &pVM->pgm.s.paModeData[pgmModeDataIndex(PGM_TYPE_NESTED, PGM_TYPE_AMD64)]; 2772 2781 pModeData->uShwType = PGM_TYPE_NESTED; … … 2774 2783 rc = PGM_GST_NAME_AMD64(InitData)( pVM, pModeData, fResolveGCAndR0); AssertRCReturn(rc, rc); 2775 2784 rc = PGM_BTH_NAME_NESTED_AMD64(InitData)( pVM, pModeData, fResolveGCAndR0); AssertRCReturn(rc, rc); 2785 #endif 2786 2787 #ifdef VBOX_WITH_64_BITS_GUESTS 2788 # define PGM_TYPE_MAX_SHADOW PGM_TYPE_AMD64 2789 #else 2790 # define PGM_TYPE_MAX_SHADOW PGM_TYPE_PAE 2791 #endif 2776 2792 2777 2793 /* The shadow part of the nested callback mode depends on the host paging mode (AMD-V only). */ … … 2780 2796 case SUPPAGINGMODE_32_BIT: 2781 2797 case SUPPAGINGMODE_32_BIT_GLOBAL: 2782 for (unsigned i=PGM_TYPE_REAL;i<=PGM_TYPE_ AMD64;i++)2798 for (unsigned i=PGM_TYPE_REAL;i<=PGM_TYPE_MAX_SHADOW;i++) 2783 2799 { 2784 2800 pModeData = &pVM->pgm.s.paModeData[pgmModeDataIndex(PGM_TYPE_NESTED, i)]; … … 2791 2807 case SUPPAGINGMODE_PAE_GLOBAL: 2792 2808 case SUPPAGINGMODE_PAE_GLOBAL_NX: 2793 for (unsigned i=PGM_TYPE_REAL;i<=PGM_TYPE_ AMD64;i++)2809 for (unsigned i=PGM_TYPE_REAL;i<=PGM_TYPE_MAX_SHADOW;i++) 2794 2810 { 2795 2811 pModeData = &pVM->pgm.s.paModeData[pgmModeDataIndex(PGM_TYPE_NESTED, i)]; … … 2802 2818 case SUPPAGINGMODE_AMD64_NX: 2803 2819 case SUPPAGINGMODE_AMD64_GLOBAL_NX: 2804 for (unsigned i=PGM_TYPE_REAL;i<=PGM_TYPE_ AMD64;i++)2820 for (unsigned i=PGM_TYPE_REAL;i<=PGM_TYPE_MAX_SHADOW;i++) 2805 2821 { 2806 2822 pModeData = &pVM->pgm.s.paModeData[pgmModeDataIndex(PGM_TYPE_NESTED, i)]; … … 2842 2858 rc = PGM_BTH_NAME_EPT_PAE(InitData)( pVM, pModeData, fResolveGCAndR0); AssertRCReturn(rc, rc); 2843 2859 2860 #ifdef VBOX_WITH_64_BITS_GUESTS 2844 2861 pModeData = &pVM->pgm.s.paModeData[pgmModeDataIndex(PGM_TYPE_EPT, PGM_TYPE_AMD64)]; 2845 2862 pModeData->uShwType = PGM_TYPE_EPT; … … 2848 2865 rc = PGM_GST_NAME_AMD64(InitData)( pVM, pModeData, fResolveGCAndR0); AssertRCReturn(rc, rc); 2849 2866 rc = PGM_BTH_NAME_EPT_AMD64(InitData)( pVM, pModeData, fResolveGCAndR0); AssertRCReturn(rc, rc); 2867 #endif 2850 2868 return VINF_SUCCESS; 2851 2869 } … … 3376 3394 } 3377 3395 3396 #ifdef VBOX_WITH_64_BITS_GUESTS 3378 3397 case PGMMODE_AMD64_NX: 3379 3398 case PGMMODE_AMD64: … … 3399 3418 } 3400 3419 break; 3420 #endif 3401 3421 3402 3422 default: -
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r13099 r13106 200 200 #undef PGM_GST_NAME 201 201 202 #ifdef VBOX_WITH_64_BITS_GUESTS 202 203 /* Guest - AMD64 mode */ 203 204 #define PGM_GST_TYPE PGM_TYPE_AMD64 … … 213 214 #undef PGM_GST_TYPE 214 215 #undef PGM_GST_NAME 216 #endif 215 217 216 218 #undef PGM_SHW_TYPE … … 260 262 #undef PGM_GST_NAME 261 263 264 #ifdef VBOX_WITH_64_BITS_GUESTS 262 265 /* Guest - AMD64 mode */ 263 266 #define PGM_GST_TYPE PGM_TYPE_AMD64 … … 268 271 #undef PGM_GST_TYPE 269 272 #undef PGM_GST_NAME 273 #endif 270 274 271 275 #undef PGM_SHW_TYPE … … 323 327 #undef PGM_GST_NAME 324 328 329 #ifdef VBOX_WITH_64_BITS_GUESTS 325 330 /* Guest - AMD64 mode */ 326 331 #define PGM_GST_TYPE PGM_TYPE_AMD64 … … 333 338 #undef PGM_GST_TYPE 334 339 #undef PGM_GST_NAME 340 #endif 335 341 336 342 #undef PGM_SHW_TYPE -
trunk/src/VBox/VMM/VMMGC/PGMGC.cpp
r13087 r13106 151 151 #include "PGMGCShw.h" 152 152 153 #ifdef VBOX_WITH_64_BITS_GUESTS 153 154 /* Guest - AMD64 mode */ 154 155 #define PGM_GST_TYPE PGM_TYPE_AMD64 … … 160 161 #undef PGM_GST_TYPE 161 162 #undef PGM_GST_NAME 163 #endif 162 164 163 165 #undef PGM_SHW_TYPE
Note:
See TracChangeset
for help on using the changeset viewer.