VirtualBox

Changeset 30390 in vbox


Ignore:
Timestamp:
Jun 23, 2010 12:49:37 PM (14 years ago)
Author:
vboxsync
Message:

VT-x: when the guest's FPU state is active, then we no longer care about the FPU related bits. Saves a lot of world switches

File:
1 edited

Legend:

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

    r30388 r30390  
    15811581              | X86_CR0_WP  /* Must monitor this bit (it must always be enabled). */
    15821582              | X86_CR0_PG  /* Must monitor this bit (assumptions are made for real mode & protected mode without paging emulation) */
    1583               | X86_CR0_TS
    1584               | X86_CR0_ET  /* Bit not restored during VM-exit! */
    15851583              | X86_CR0_CD  /* Bit not restored during VM-exit! */
    1586               | X86_CR0_NW  /* Bit not restored during VM-exit! */
    1587               | X86_CR0_NE
    1588               | X86_CR0_MP;
     1584              | X86_CR0_NW; /* Bit not restored during VM-exit! */
     1585
     1586        /* When the guest's FPU state is active, then we no longer care about
     1587         * the FPU related bits.
     1588         */
     1589        if (CPUMIsGuestFPUStateActive(pVCpu) == false)
     1590            val |= X86_CR0_TS | X86_CR0_ET | X86_CR0_NE | X86_CR0_MP;
     1591
    15891592        pVCpu->hwaccm.s.vmx.cr0_mask = val;
    15901593
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