VirtualBox

Changeset 95134 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
May 27, 2022 2:50:17 PM (3 years ago)
Author:
vboxsync
Message:

VMM,SUPDrv: Pass proper fCtxHook value to SUPR0FpuBegin/End so it can be used for assertions on linux. Wrote a more detailed explanation for the preemption hack in the linux SUPR0FpuBegin code and propped it up with an Assert(). bugref:10209

File:
1 edited

Legend:

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

    r95123 r95134  
    521521
    522522    /* Notify the support driver prior to loading the guest-FPU register state. */
    523     SUPR0FpuBegin(false /* unused */);
     523    SUPR0FpuBegin(VMMR0ThreadCtxHookIsEnabled(pVCpu));
     524    /** @todo use return value? Currently skipping that to be on the safe side
     525     *        wrt. extended state (linux). */
    524526
    525527    if (!pVM->cpum.s.HostFeatures.fLeakyFxSR)
     
    591593
    592594        /* Notify the support driver after loading the host-FPU register state. */
    593         SUPR0FpuEnd(false /* unused */);
     595        SUPR0FpuEnd(VMMR0ThreadCtxHookIsEnabled(pVCpu));
    594596    }
    595597    else
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