VirtualBox

Changeset 13195 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 13, 2008 8:45:56 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37737
Message:

Prefetch the four PDPT entries in PAE mode (EPT only).

Location:
trunk/include/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/hwacc_vmx.h

    r13140 r13195  
    13821382 * @param   u64Val          16, 32 or 64 bits value
    13831383 */
     1384#if HC_ARCH_BITS == 64
    13841385DECLASM(int) VMXWriteVMCS64(uint32_t idxField, uint64_t u64Val);
     1386#else
     1387DECLINLINE(int) VMXWriteVMCS64(uint32_t idxField, uint64_t u64Val)
     1388{
     1389    int rc;
     1390
     1391    rc  = VMXWriteVMCS32(idxField,    u64Val);
     1392    rc |= VMXWriteVMCS32(idxField+1,  u64Val >> 32ULL);
     1393    return rc;
     1394}
     1395#endif
    13851396
    13861397/**
     
    13911402 * @param   u32Val          32 bits value
    13921403 */
    1393 #if RT_INLINE_ASM_EXTERNAL || HC_ARCH_BITS == 64
     1404#if HC_ARCH_BITS == 64
     1405DECLINLINE(int) VMXWriteVMCS32(uint32_t idxField, uint32_t u32Val)
     1406{
     1407    return VMXWriteVMCS64(idxField, u32Val);
     1408}
     1409#elif RT_INLINE_ASM_EXTERNAL
    13941410DECLASM(int) VMXWriteVMCS32(uint32_t idxField, uint32_t u32Val);
    13951411#else
     
    14351451}
    14361452#endif
    1437 
    1438 #if HC_ARCH_BITS == 64
    1439 #define VMXWriteVMCS VMXWriteVMCS64
    1440 #else
    1441 #define VMXWriteVMCS VMXWriteVMCS32
    1442 #endif /* HC_ARCH_BITS == 64 */
    14431453
    14441454
  • trunk/include/VBox/pgm.h

    r13146 r13195  
    336336VMMDECL(int)    PGMGstSetPage(PVM pVM, RTGCPTR GCPtr, size_t cb, uint64_t fFlags);
    337337VMMDECL(int)    PGMGstModifyPage(PVM pVM, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask);
     338VMMDECL(X86PDPE) PGMGstGetPaePDPtr(PVM pVM, unsigned iPdPt);
     339
    338340VMMDECL(int)    PGMFlushTLB(PVM pVM, uint64_t cr3, bool fGlobal);
    339341VMMDECL(int)    PGMUpdateCR3(PVM pVM, uint64_t cr3);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette