Changeset 20127 in vbox for trunk/src/VBox/VMM
- Timestamp:
- May 28, 2009 3:48:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r20126 r20127 1188 1188 if (PdeSrc.n.u1Present) 1189 1189 { 1190 # ifndef PGM_WITHOUT_MAPPING 1190 1191 if (PdeDst.u & PGM_PDFLAGS_MAPPING) 1191 1192 { … … 1199 1200 pgmUnlock(pVM); 1200 1201 } 1201 else if ( PdeSrc.n.u1User != PdeDst.n.u1User 1202 else 1203 # endif /* !PGM_WITHOUT_MAPPING */ 1204 if ( PdeSrc.n.u1User != PdeDst.n.u1User 1202 1205 || (!PdeSrc.n.u1Write && PdeDst.n.u1Write)) 1203 1206 { … … 3338 3341 } 3339 3342 3340 3341 #if PGM_GST_TYPE == PGM_TYPE_32BIT || PGM_GST_TYPE == PGM_TYPE_PAE || PGM_GST_TYPE == PGM_TYPE_AMD643342 # if PGM_SHW_TYPE == PGM_TYPE_32BIT || PGM_SHW_TYPE == PGM_TYPE_PAE || PGM_SHW_TYPE == PGM_TYPE_AMD643343 /**3344 * Figures out which kind of shadow page this guest PDE warrants.3345 *3346 * @returns Shadow page kind.3347 * @param pPdeSrc The guest PDE in question.3348 * @param cr4 The current guest cr4 value.3349 */3350 DECLINLINE(PGMPOOLKIND) PGM_BTH_NAME(CalcPageKind)(const GSTPDE *pPdeSrc, uint32_t cr4)3351 {3352 # if PMG_GST_TYPE == PGM_TYPE_AMD643353 if (!pPdeSrc->n.u1Size)3354 # else3355 if (!pPdeSrc->n.u1Size || !(cr4 & X86_CR4_PSE))3356 # endif3357 return BTH_PGMPOOLKIND_PT_FOR_PT;3358 //switch (pPdeSrc->u & (X86_PDE4M_RW | X86_PDE4M_US /*| X86_PDE4M_PAE_NX*/))3359 //{3360 // case 0:3361 // return BTH_PGMPOOLKIND_PT_FOR_BIG_RO;3362 // case X86_PDE4M_RW:3363 // return BTH_PGMPOOLKIND_PT_FOR_BIG_RW;3364 // case X86_PDE4M_US:3365 // return BTH_PGMPOOLKIND_PT_FOR_BIG_US;3366 // case X86_PDE4M_RW | X86_PDE4M_US:3367 // return BTH_PGMPOOLKIND_PT_FOR_BIG_RW_US;3368 # if 03369 // case X86_PDE4M_PAE_NX:3370 // return BTH_PGMPOOLKIND_PT_FOR_BIG_NX;3371 // case X86_PDE4M_RW | X86_PDE4M_PAE_NX:3372 // return BTH_PGMPOOLKIND_PT_FOR_BIG_RW_NX;3373 // case X86_PDE4M_US | X86_PDE4M_PAE_NX:3374 // return BTH_PGMPOOLKIND_PT_FOR_BIG_US_NX;3375 // case X86_PDE4M_RW | X86_PDE4M_US | X86_PDE4M_PAE_NX:3376 // return BTH_PGMPOOLKIND_PT_FOR_BIG_RW_US_NX;3377 # endif3378 return BTH_PGMPOOLKIND_PT_FOR_BIG;3379 //}3380 }3381 # endif3382 #endif3383 3384 3343 #undef MY_STAM_COUNTER_INC 3385 3344 #define MY_STAM_COUNTER_INC(a) do { } while (0)
Note:
See TracChangeset
for help on using the changeset viewer.