VirtualBox

Changeset 71446 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 22, 2018 10:50:35 AM (7 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Use #MF exception and CR0.NE=1 method of handling legacy-FPU error handling.

File:
1 edited

Legend:

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

    r71445 r71446  
    14431443                   |  X86_CR0_WP;     /* Guest CPL 0 writes to its read-only pages should cause a #PF #VMEXIT. */
    14441444    }
     1445
     1446    /*
     1447     * Use the #MF style of legacy-FPU error reporting for now as IEM needs work
     1448     * if we want to fully emulate it properly. AMD-V has MSRs that lets us isolate
     1449     * the host from it, but IEM needs work, see @bugref{7243#c103}.
     1450     */
     1451    if (!(uGuestCr0 & X86_CR0_NE))
     1452    {
     1453        uShadowCr0 |= X86_CR0_NE;
     1454        hmR0SvmAddXcptIntercept(pVmcb, X86_XCPT_MF);
     1455    }
     1456    else
     1457        hmR0SvmRemoveXcptIntercept(pVCpu, pCtx, pVmcb, X86_XCPT_MF);
    14451458
    14461459    /*
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