VirtualBox

Changeset 13025 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 7, 2008 7:28:54 AM (16 years ago)
Author:
vboxsync
Message:

Updates for EPT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/HWACCMAll.cpp

    r12989 r13025  
    5353VMMDECL(int) HWACCMInvalidatePage(PVM pVM, RTGCPTR GCVirt)
    5454{
    55     /** @todo Intel for nested paging */
    5655#ifdef IN_RING0
    57     if (pVM->hwaccm.s.svm.fSupported)
    58         return SVMR0InvalidatePage(pVM, GCVirt);
     56    if (pVM->hwaccm.s.vmx.fSupported)
     57        return VMXR0InvalidatePage(pVM, GCVirt);
     58
     59    Assert(pVM->hwaccm.s.svm.fSupported);
     60    return SVMR0InvalidatePage(pVM, GCVirt);
    5961#endif
    6062
     
    7072VMMDECL(int) HWACCMFlushTLB(PVM pVM)
    7173{
    72     /** @todo Intel for nested paging */
    73     if (pVM->hwaccm.s.svm.fSupported)
    74     {
    75         LogFlow(("HWACCMFlushTLB\n"));
    76         pVM->hwaccm.s.svm.fForceTLBFlush = true;
    77         STAM_COUNTER_INC(&pVM->hwaccm.s.StatFlushTLBManual);
    78     }
     74    LogFlow(("HWACCMFlushTLB\n"));
     75
     76    pVM->hwaccm.s.fForceTLBFlush = true;
     77    STAM_COUNTER_INC(&pVM->hwaccm.s.StatFlushTLBManual);
    7978    return VINF_SUCCESS;
    8079}
     
    121120
    122121#ifdef IN_RING0
    123     /** @todo Intel for nested paging */
    124     if (pVM->hwaccm.s.svm.fSupported)
    125     {
    126         SVMR0InvalidatePhysPage(pVM, GCPhys);
    127     }
     122    if (pVM->hwaccm.s.vmx.fSupported)
     123        return VMXR0InvalidatePhysPage(pVM, GCPhys);
     124
     125    Assert(pVM->hwaccm.s.svm.fSupported);
     126    SVMR0InvalidatePhysPage(pVM, GCPhys);
    128127#else
    129128    HWACCMFlushTLB(pVM);
Note: See TracChangeset for help on using the changeset viewer.

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