VirtualBox

Changeset 10355 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jul 8, 2008 11:19:56 AM (16 years ago)
Author:
vboxsync
Message:

TPR updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r10353 r10355  
    178178        ASMMemZero32(pVM->hwaccm.s.vmx.pAPIC, PAGE_SIZE);
    179179    }
     180    else
     181    {
     182        pVM->hwaccm.s.vmx.pMemObjAPIC = 0;
     183        pVM->hwaccm.s.vmx.pAPIC       = 0;
     184        pVM->hwaccm.s.vmx.pAPICPhys   = 0;
     185    }
    180186
    181187#ifdef LOG_ENABLED
     
    275281    val |= VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_CR8_STORE_EXIT;
    276282
    277     /* Exit on CR8 reads as well in case the TPR shadow feature isn't present. */
    278     if (!(pVM->hwaccm.s.vmx.msr.vmx_proc_ctls & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_USE_TPR_SHADOW))
     283    if (pVM->hwaccm.s.vmx.msr.vmx_proc_ctls & VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_USE_TPR_SHADOW)
     284    {
     285        /* CR8 reads from the APIC shadow page */
     286        val |= VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_USE_TPR_SHADOW;
     287    }
     288    else
     289        /* Exit on CR8 reads as well in case the TPR shadow feature isn't present. */
    279290        val |= VMX_VMCS_CTRL_PROC_EXEC_CONTROLS_CR8_LOAD_EXIT;
    280291#endif
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