Changeset 17215 in vbox
- Timestamp:
- Feb 27, 2009 4:33:19 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 5 edited
- 1 moved
-
PGM.cpp (modified) (18 diffs)
-
PGMGst.h (modified) (1 diff)
-
PGMGstDefs.h (moved) (moved from trunk/src/VBox/VMM/VMMAll/PGMAllGstDefs.h ) (1 diff)
-
VMMAll/PGMAll.cpp (modified) (19 diffs)
-
VMMAll/PGMAllBth.h (modified) (1 diff)
-
VMMAll/PGMAllGst.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGM.cpp
r16918 r17215 687 687 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_32BIT_PD_PHYS 688 688 #include "PGMBth.h" 689 #include "PGMGstDefs.h" 689 690 #include "PGMGst.h" 690 691 #undef BTH_PGMPOOLKIND_PT_FOR_PT … … 709 710 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_32BIT_PD_PHYS 710 711 #include "PGMBth.h" 712 #include "PGMGstDefs.h" 711 713 #include "PGMGst.h" 712 714 #undef BTH_PGMPOOLKIND_PT_FOR_PT … … 732 734 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_32BIT_PD 733 735 #include "PGMBth.h" 736 #include "PGMGstDefs.h" 734 737 #include "PGMGst.h" 735 738 #undef BTH_PGMPOOLKIND_PT_FOR_BIG … … 770 773 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PHYS 771 774 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_PAE_PDPT_PHYS 775 #include "PGMGstDefs.h" 772 776 #include "PGMBth.h" 773 777 #undef BTH_PGMPOOLKIND_PT_FOR_PT … … 791 795 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PHYS 792 796 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_PAE_PDPT_PHYS 797 #include "PGMGstDefs.h" 793 798 #include "PGMBth.h" 794 799 #undef BTH_PGMPOOLKIND_PT_FOR_PT … … 813 818 #define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_PAE_PT_FOR_32BIT_4MB 814 819 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_PAE_PDPT_FOR_32BIT 820 #include "PGMGstDefs.h" 815 821 #include "PGMBth.h" 816 822 #undef BTH_PGMPOOLKIND_PT_FOR_BIG … … 837 843 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_PAE_PDPT 838 844 #include "PGMBth.h" 845 #include "PGMGstDefs.h" 839 846 #include "PGMGst.h" 840 847 #undef BTH_PGMPOOLKIND_PT_FOR_BIG … … 877 884 # define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_64BIT_PML4 878 885 # include "PGMBth.h" 886 # include "PGMGstDefs.h" 879 887 # include "PGMGst.h" 880 888 # undef BTH_PGMPOOLKIND_PT_FOR_BIG … … 914 922 #define PGM_BTH_NAME_R0_STR(name) PGM_BTH_NAME_R0_NESTED_REAL_STR(name) 915 923 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PHYS 924 #include "PGMGstDefs.h" 916 925 #include "PGMBth.h" 917 926 #undef BTH_PGMPOOLKIND_PT_FOR_PT … … 933 942 #define PGM_BTH_NAME_R0_STR(name) PGM_BTH_NAME_R0_NESTED_PROT_STR(name) 934 943 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PHYS 944 #include "PGMGstDefs.h" 935 945 #include "PGMBth.h" 936 946 #undef BTH_PGMPOOLKIND_PT_FOR_PT … … 953 963 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_32BIT_PT 954 964 #define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_PAE_PT_FOR_32BIT_4MB 965 #include "PGMGstDefs.h" 955 966 #include "PGMBth.h" 956 967 #undef BTH_PGMPOOLKIND_PT_FOR_BIG … … 974 985 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PAE_PT 975 986 #define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_PAE_PT_FOR_PAE_2MB 987 #include "PGMGstDefs.h" 976 988 #include "PGMBth.h" 977 989 #undef BTH_PGMPOOLKIND_PT_FOR_BIG … … 996 1008 # define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PAE_PT 997 1009 # define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_PAE_PT_FOR_PAE_2MB 1010 # include "PGMGstDefs.h" 998 1011 # include "PGMBth.h" 999 1012 # undef BTH_PGMPOOLKIND_PT_FOR_BIG … … 1032 1045 #define PGM_BTH_NAME_R0_STR(name) PGM_BTH_NAME_R0_EPT_REAL_STR(name) 1033 1046 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PHYS 1047 #include "PGMGstDefs.h" 1034 1048 #include "PGMBth.h" 1035 1049 #undef BTH_PGMPOOLKIND_PT_FOR_PT … … 1051 1065 #define PGM_BTH_NAME_R0_STR(name) PGM_BTH_NAME_R0_EPT_PROT_STR(name) 1052 1066 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PHYS 1067 #include "PGMGstDefs.h" 1053 1068 #include "PGMBth.h" 1054 1069 #undef BTH_PGMPOOLKIND_PT_FOR_PT … … 1071 1086 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_32BIT_PT 1072 1087 #define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_PAE_PT_FOR_32BIT_4MB 1088 #include "PGMGstDefs.h" 1073 1089 #include "PGMBth.h" 1074 1090 #undef BTH_PGMPOOLKIND_PT_FOR_BIG … … 1092 1108 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PAE_PT 1093 1109 #define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_PAE_PT_FOR_PAE_2MB 1110 #include "PGMGstDefs.h" 1094 1111 #include "PGMBth.h" 1095 1112 #undef BTH_PGMPOOLKIND_PT_FOR_BIG … … 1114 1131 # define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PAE_PT 1115 1132 # define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_PAE_PT_FOR_PAE_2MB 1133 # include "PGMGstDefs.h" 1116 1134 # include "PGMBth.h" 1117 1135 # undef BTH_PGMPOOLKIND_PT_FOR_BIG -
trunk/src/VBox/VMM/PGMGst.h
r16918 r17215 19 19 * additional information or have any questions. 20 20 */ 21 22 /*******************************************************************************23 * Defined Constants And Macros *24 *******************************************************************************/25 #undef GSTPT26 #undef PGSTPT27 #undef GSTPTE28 #undef PGSTPTE29 #undef GSTPD30 #undef PGSTPD31 #undef GSTPDE32 #undef PGSTPDE33 #undef GST_BIG_PAGE_SIZE34 #undef GST_BIG_PAGE_OFFSET_MASK35 #undef GST_PDE_PG_MASK36 #undef GST_PDE_BIG_PG_MASK37 #undef GST_PD_SHIFT38 #undef GST_PD_MASK39 #undef GST_PTE_PG_MASK40 #undef GST_PT_SHIFT41 #undef GST_PT_MASK42 #undef GST_TOTAL_PD_ENTRIES43 #undef GST_CR3_PAGE_MASK44 #undef GST_PDPE_ENTRIES45 #undef GST_GET_PDE_BIG_PG_GCPHYS46 47 #if PGM_GST_TYPE == PGM_TYPE_32BIT \48 || PGM_GST_TYPE == PGM_TYPE_REAL \49 || PGM_GST_TYPE == PGM_TYPE_PROT50 # define GSTPT X86PT51 # define PGSTPT PX86PT52 # define GSTPTE X86PTE53 # define PGSTPTE PX86PTE54 # define GSTPD X86PD55 # define PGSTPD PX86PD56 # define GSTPDE X86PDE57 # define PGSTPDE PX86PDE58 # define GST_BIG_PAGE_SIZE X86_PAGE_4M_SIZE59 # define GST_BIG_PAGE_OFFSET_MASK X86_PAGE_4M_OFFSET_MASK60 # define GST_PDE_PG_MASK X86_PDE_PG_MASK61 # define GST_PDE_BIG_PG_MASK X86_PDE4M_PG_MASK62 # define GST_GET_PDE_BIG_PG_GCPHYS(PdeGst) pgmGstGet4MBPhysPage(&pVM->pgm.s, PdeGst)63 # define GST_PD_SHIFT X86_PD_SHIFT64 # define GST_PD_MASK X86_PD_MASK65 # define GST_TOTAL_PD_ENTRIES X86_PG_ENTRIES66 # define GST_PTE_PG_MASK X86_PTE_PG_MASK67 # define GST_PT_SHIFT X86_PT_SHIFT68 # define GST_PT_MASK X86_PT_MASK69 # define GST_CR3_PAGE_MASK X86_CR3_PAGE_MASK70 71 #elif PGM_GST_TYPE == PGM_TYPE_PAE \72 || PGM_GST_TYPE == PGM_TYPE_AMD6473 # define GSTPT X86PTPAE74 # define PGSTPT PX86PTPAE75 # define GSTPTE X86PTEPAE76 # define PGSTPTE PX86PTEPAE77 # define GSTPD X86PDPAE78 # define PGSTPD PX86PDPAE79 # define GSTPDE X86PDEPAE80 # define PGSTPDE PX86PDEPAE81 # define GST_BIG_PAGE_SIZE X86_PAGE_2M_SIZE82 # define GST_BIG_PAGE_OFFSET_MASK X86_PAGE_2M_OFFSET_MASK83 # define GST_PDE_PG_MASK X86_PDE_PAE_PG_MASK84 # define GST_PDE_BIG_PG_MASK X86_PDE2M_PAE_PG_MASK85 # define GST_GET_PDE_BIG_PG_GCPHYS(PdeGst) (PdeGst.u & GST_PDE_BIG_PG_MASK)86 # define GST_PD_SHIFT X86_PD_PAE_SHIFT87 # define GST_PD_MASK X86_PD_PAE_MASK88 # if PGM_GST_TYPE == PGM_TYPE_PAE89 # define GST_TOTAL_PD_ENTRIES (X86_PG_PAE_ENTRIES * X86_PG_PAE_PDPE_ENTRIES)90 # define GST_PDPE_ENTRIES X86_PG_PAE_PDPE_ENTRIES91 # else92 # define GST_TOTAL_PD_ENTRIES (X86_PG_AMD64_ENTRIES * X86_PG_AMD64_PDPE_ENTRIES)93 # define GST_PDPE_ENTRIES X86_PG_AMD64_PDPE_ENTRIES94 # endif95 # define GST_PTE_PG_MASK X86_PTE_PAE_PG_MASK96 # define GST_PT_SHIFT X86_PT_PAE_SHIFT97 # define GST_PT_MASK X86_PT_PAE_MASK98 # define GST_CR3_PAGE_MASK X86_CR3_PAE_PAGE_MASK99 #endif100 21 101 22 -
trunk/src/VBox/VMM/PGMGstDefs.h
r17212 r17215 51 51 #if PGM_GST_TYPE == PGM_TYPE_REAL \ 52 52 || PGM_GST_TYPE == PGM_TYPE_PROT 53 # define GSTPT SHWPT54 # define PGSTPT PSHWPT55 # define GSTPTE SHWPTE56 # define PGSTPTE PSHWPTE57 # define GSTPD SHWPD58 # define PGSTPD PSHWPD59 # define GSTPDE SHWPDE60 # define PGSTPDE PSHWPDE61 # define GST_PTE_PG_MASK SHW_PTE_PG_MASK62 53 54 # if PGM_SHW_TYPE == PGM_TYPE_EPT 55 # define GSTPT X86PTPAE 56 # define PGSTPT PX86PTPAE 57 # define GSTPTE X86PTEPAE 58 # define PGSTPTE PX86PTEPAE 59 # define GSTPD X86PDPAE 60 # define PGSTPD PX86PDPAE 61 # define GSTPDE X86PDEPAE 62 # define PGSTPDE PX86PDEPAE 63 # define GST_PTE_PG_MASK X86_PTE_PAE_PG_MASK 64 # else 65 # define GSTPT SHWPT 66 # define PGSTPT PSHWPT 67 # define GSTPTE SHWPTE 68 # define PGSTPTE PSHWPTE 69 # define GSTPD SHWPD 70 # define PGSTPD PSHWPD 71 # define GSTPDE SHWPDE 72 # define PGSTPDE PSHWPDE 73 # define GST_PTE_PG_MASK SHW_PTE_PG_MASK 74 # endif 63 75 #elif PGM_GST_TYPE == PGM_TYPE_32BIT 64 76 # define GSTPT X86PT -
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r17195 r17215 88 88 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_32BIT_PT_FOR_PHYS 89 89 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_32BIT_PD_PHYS 90 #include "PGMGstDefs.h" 90 91 #include "PGMAllGst.h" 91 92 #include "PGMAllBth.h" … … 102 103 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_32BIT_PT_FOR_PHYS 103 104 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_32BIT_PD_PHYS 105 #include "PGMGstDefs.h" 104 106 #include "PGMAllGst.h" 105 107 #include "PGMAllBth.h" … … 117 119 #define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_32BIT_PT_FOR_32BIT_4MB 118 120 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_32BIT_PD 121 #include "PGMGstDefs.h" 119 122 #include "PGMAllGst.h" 120 123 #include "PGMAllBth.h" … … 144 147 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PHYS 145 148 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_PAE_PDPT_PHYS 149 #include "PGMGstDefs.h" 146 150 #include "PGMAllBth.h" 147 151 #undef BTH_PGMPOOLKIND_PT_FOR_PT … … 157 161 #define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PHYS 158 162 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_PAE_PDPT_PHYS 163 #include "PGMGstDefs.h" 159 164 #include "PGMAllBth.h" 160 165 #undef BTH_PGMPOOLKIND_PT_FOR_PT … … 171 176 #define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_PAE_PT_FOR_32BIT_4MB 172 177 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_PAE_PDPT_FOR_32BIT 178 #include "PGMGstDefs.h" 173 179 #include "PGMAllBth.h" 174 180 #undef BTH_PGMPOOLKIND_PT_FOR_BIG … … 187 193 #define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_PAE_PT_FOR_PAE_2MB 188 194 #define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_PAE_PDPT 195 #include "PGMGstDefs.h" 189 196 #include "PGMAllGst.h" 190 197 #include "PGMAllBth.h" … … 214 221 # define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_PAE_PT_FOR_PHYS 215 222 # define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_PAE_PD_PHYS 223 # include "PGMGstDefs.h" 216 224 # include "PGMAllBth.h" 217 225 # undef BTH_PGMPOOLKIND_PT_FOR_PT … … 229 237 # define BTH_PGMPOOLKIND_PT_FOR_BIG PGMPOOLKIND_PAE_PT_FOR_PAE_2MB 230 238 # define BTH_PGMPOOLKIND_ROOT PGMPOOLKIND_64BIT_PML4 239 # include "PGMGstDefs.h" 231 240 # include "PGMAllGst.h" 232 241 # include "PGMAllBth.h" … … 254 263 # define PGM_GST_NAME(name) PGM_GST_NAME_REAL(name) 255 264 # define PGM_BTH_NAME(name) PGM_BTH_NAME_NESTED_REAL(name) 265 # include "PGMGstDefs.h" 256 266 # include "PGMAllBth.h" 257 267 # undef PGM_BTH_NAME … … 263 273 # define PGM_GST_NAME(name) PGM_GST_NAME_PROT(name) 264 274 # define PGM_BTH_NAME(name) PGM_BTH_NAME_NESTED_PROT(name) 275 # include "PGMGstDefs.h" 265 276 # include "PGMAllBth.h" 266 277 # undef PGM_BTH_NAME … … 272 283 # define PGM_GST_NAME(name) PGM_GST_NAME_32BIT(name) 273 284 # define PGM_BTH_NAME(name) PGM_BTH_NAME_NESTED_32BIT(name) 285 # include "PGMGstDefs.h" 274 286 # include "PGMAllBth.h" 275 287 # undef PGM_BTH_NAME … … 281 293 # define PGM_GST_NAME(name) PGM_GST_NAME_PAE(name) 282 294 # define PGM_BTH_NAME(name) PGM_BTH_NAME_NESTED_PAE(name) 295 # include "PGMGstDefs.h" 283 296 # include "PGMAllBth.h" 284 297 # undef PGM_BTH_NAME … … 291 304 # define PGM_GST_NAME(name) PGM_GST_NAME_AMD64(name) 292 305 # define PGM_BTH_NAME(name) PGM_BTH_NAME_NESTED_AMD64(name) 306 # include "PGMGstDefs.h" 293 307 # include "PGMAllBth.h" 294 308 # undef PGM_BTH_NAME … … 313 327 # define PGM_BTH_NAME(name) PGM_BTH_NAME_EPT_REAL(name) 314 328 # define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_EPT_PT_FOR_PHYS 329 # include "PGMGstDefs.h" 315 330 # include "PGMAllBth.h" 316 331 # undef BTH_PGMPOOLKIND_PT_FOR_PT … … 324 339 # define PGM_BTH_NAME(name) PGM_BTH_NAME_EPT_PROT(name) 325 340 # define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_EPT_PT_FOR_PHYS 341 # include "PGMGstDefs.h" 326 342 # include "PGMAllBth.h" 327 343 # undef BTH_PGMPOOLKIND_PT_FOR_PT … … 335 351 # define PGM_BTH_NAME(name) PGM_BTH_NAME_EPT_32BIT(name) 336 352 # define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_EPT_PT_FOR_PHYS 353 # include "PGMGstDefs.h" 337 354 # include "PGMAllBth.h" 338 355 # undef BTH_PGMPOOLKIND_PT_FOR_PT … … 346 363 # define PGM_BTH_NAME(name) PGM_BTH_NAME_EPT_PAE(name) 347 364 # define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_EPT_PT_FOR_PHYS 365 # include "PGMGstDefs.h" 348 366 # include "PGMAllBth.h" 349 367 # undef BTH_PGMPOOLKIND_PT_FOR_PT … … 358 376 # define PGM_BTH_NAME(name) PGM_BTH_NAME_EPT_AMD64(name) 359 377 # define BTH_PGMPOOLKIND_PT_FOR_PT PGMPOOLKIND_EPT_PT_FOR_PHYS 378 # include "PGMGstDefs.h" 360 379 # include "PGMAllBth.h" 361 380 # undef BTH_PGMPOOLKIND_PT_FOR_PT -
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r17207 r17215 1572 1572 * Update statistics and commit the entry. 1573 1573 */ 1574 #if PGM_WITH_PAGING(PGM_GST_TYPE, PGM_SHW_TYPE) 1574 1575 if (!PteSrc.n.u1Global) 1575 1576 pShwPage->fSeenNonGlobal = true; 1577 #endif 1576 1578 *pPteDst = PteDst; 1577 1579 } -
trunk/src/VBox/VMM/VMMAll/PGMAllGst.h
r16918 r17215 19 19 * additional information or have any questions. 20 20 */ 21 22 23 /*******************************************************************************24 * Defined Constants And Macros *25 *******************************************************************************/26 #undef GSTPT27 #undef PGSTPT28 #undef GSTPTE29 #undef PGSTPTE30 #undef GSTPD31 #undef PGSTPD32 #undef GSTPDE33 #undef PGSTPDE34 #undef GST_BIG_PAGE_SIZE35 #undef GST_BIG_PAGE_OFFSET_MASK36 #undef GST_PDE_PG_MASK37 #undef GST_PDE_BIG_PG_MASK38 #undef GST_PD_SHIFT39 #undef GST_PD_MASK40 #undef GST_PTE_PG_MASK41 #undef GST_PT_SHIFT42 #undef GST_PT_MASK43 #undef GST_TOTAL_PD_ENTRIES44 #undef GST_CR3_PAGE_MASK45 #undef GST_PDPE_ENTRIES46 #undef GST_PDPT_SHIFT47 #undef GST_PDPT_MASK48 #undef GST_PDPE_PG_MASK49 #undef GST_GET_PDE_BIG_PG_GCPHYS50 51 #if PGM_GST_TYPE == PGM_TYPE_REAL \52 || PGM_GST_TYPE == PGM_TYPE_PROT53 # define GSTPT SHWPT54 # define PGSTPT PSHWPT55 # define GSTPTE SHWPTE56 # define PGSTPTE PSHWPTE57 # define GSTPD SHWPD58 # define PGSTPD PSHWPD59 # define GSTPDE SHWPDE60 # define PGSTPDE PSHWPDE61 # define GST_PTE_PG_MASK SHW_PTE_PG_MASK62 63 #elif PGM_GST_TYPE == PGM_TYPE_32BIT64 # define GSTPT X86PT65 # define PGSTPT PX86PT66 # define GSTPTE X86PTE67 # define PGSTPTE PX86PTE68 # define GSTPD X86PD69 # define PGSTPD PX86PD70 # define GSTPDE X86PDE71 # define PGSTPDE PX86PDE72 # define GST_BIG_PAGE_SIZE X86_PAGE_4M_SIZE73 # define GST_BIG_PAGE_OFFSET_MASK X86_PAGE_4M_OFFSET_MASK74 # define GST_PDE_PG_MASK X86_PDE_PG_MASK75 # define GST_PDE_BIG_PG_MASK X86_PDE4M_PG_MASK76 # define GST_GET_PDE_BIG_PG_GCPHYS(PdeGst) pgmGstGet4MBPhysPage(&pVM->pgm.s, PdeGst)77 # define GST_PD_SHIFT X86_PD_SHIFT78 # define GST_PD_MASK X86_PD_MASK79 # define GST_TOTAL_PD_ENTRIES X86_PG_ENTRIES80 # define GST_PTE_PG_MASK X86_PTE_PG_MASK81 # define GST_PT_SHIFT X86_PT_SHIFT82 # define GST_PT_MASK X86_PT_MASK83 # define GST_CR3_PAGE_MASK X86_CR3_PAGE_MASK84 85 #elif PGM_GST_TYPE == PGM_TYPE_PAE \86 || PGM_GST_TYPE == PGM_TYPE_AMD6487 # define GSTPT X86PTPAE88 # define PGSTPT PX86PTPAE89 # define GSTPTE X86PTEPAE90 # define PGSTPTE PX86PTEPAE91 # define GSTPD X86PDPAE92 # define PGSTPD PX86PDPAE93 # define GSTPDE X86PDEPAE94 # define PGSTPDE PX86PDEPAE95 # define GST_BIG_PAGE_SIZE X86_PAGE_2M_SIZE96 # define GST_BIG_PAGE_OFFSET_MASK X86_PAGE_2M_OFFSET_MASK97 # define GST_PDE_PG_MASK X86_PDE_PAE_PG_MASK_FULL98 # define GST_PDE_BIG_PG_MASK X86_PDE2M_PAE_PG_MASK99 # define GST_GET_PDE_BIG_PG_GCPHYS(PdeGst) (PdeGst.u & GST_PDE_BIG_PG_MASK)100 # define GST_PD_SHIFT X86_PD_PAE_SHIFT101 # define GST_PD_MASK X86_PD_PAE_MASK102 # if PGM_GST_TYPE == PGM_TYPE_PAE103 # define GST_TOTAL_PD_ENTRIES (X86_PG_PAE_ENTRIES * X86_PG_PAE_PDPE_ENTRIES)104 # define GST_PDPE_ENTRIES X86_PG_PAE_PDPE_ENTRIES105 # define GST_PDPE_PG_MASK X86_PDPE_PG_MASK_FULL106 # define GST_PDPT_SHIFT X86_PDPT_SHIFT107 # define GST_PDPT_MASK X86_PDPT_MASK_PAE108 # define GST_PTE_PG_MASK X86_PTE_PAE_PG_MASK109 # define GST_CR3_PAGE_MASK X86_CR3_PAE_PAGE_MASK110 # else111 # define GST_TOTAL_PD_ENTRIES (X86_PG_AMD64_ENTRIES * X86_PG_AMD64_PDPE_ENTRIES)112 # define GST_PDPE_ENTRIES X86_PG_AMD64_PDPE_ENTRIES113 # define GST_PDPT_SHIFT X86_PDPT_SHIFT114 # define GST_PDPE_PG_MASK X86_PDPE_PG_MASK_FULL115 # define GST_PDPT_MASK X86_PDPT_MASK_AMD64116 # define GST_PTE_PG_MASK X86_PTE_PAE_PG_MASK_FULL117 # define GST_CR3_PAGE_MASK X86_CR3_AMD64_PAGE_MASK118 # endif119 # define GST_PT_SHIFT X86_PT_PAE_SHIFT120 # define GST_PT_MASK X86_PT_PAE_MASK121 #endif122 21 123 22
Note:
See TracChangeset
for help on using the changeset viewer.

