VirtualBox

Changeset 48885 in vbox


Ignore:
Timestamp:
Oct 4, 2013 10:58:32 AM (11 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: Don't assume CR8 load/store exiting is available on 32-bit CPUs. Only needed for 64-bit guests.

File:
1 edited

Legend:

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

    r48700 r48885  
    18151815    else
    18161816    {
    1817         val |=   VMX_VMCS_CTRL_PROC_EXEC_CR8_STORE_EXIT        /* CR8 reads causes a VM-exit. */
    1818                | VMX_VMCS_CTRL_PROC_EXEC_CR8_LOAD_EXIT;        /* CR8 writes causes a VM-exit. */
     1817        /*
     1818         * Some 32-bit CPUs do not support CR8 load/store exiting as MOV CR8 is invalid on 32-bit Intel CPUs.
     1819         * Set this control only for 64-bit guests.
     1820         */
     1821        if (pVM->hm.s.fAllow64BitGuests)
     1822        {
     1823            val |=   VMX_VMCS_CTRL_PROC_EXEC_CR8_STORE_EXIT    /* CR8 reads causes a VM-exit. */
     1824                   | VMX_VMCS_CTRL_PROC_EXEC_CR8_LOAD_EXIT;    /* CR8 writes causes a VM-exit. */
     1825        }
    18191826    }
    18201827
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