VirtualBox

Changeset 109200 in vbox


Ignore:
Timestamp:
May 8, 2025 9:13:54 AM (11 days ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168776
Message:

SUPDrv/linux: Don't call fpregs_unlock in SUPR0FpuBegin unless the context hook is engaged, since it may do more than just preempt_enable(). bugref:10891

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r109199 r109200  
    17511751    Assert(fCtxHook || !RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    17521752    kernel_fpu_begin();
    1753 #  if 0 /* Always do it for now for better test coverage. */
     1753#  if RTLNX_VER_MIN(6,15,0) /* fpregs_unlock may do more than just preempt_enable, so only when necessary now. */
    17541754    if (fCtxHook)
    17551755#  endif
     
    17791779    /* HACK ALERT! See SUPR0FpuBegin for an explanation of this. */
    17801780    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    1781 #  if 0 /* Always do it for now for better test coverage. */
     1781#  if RTLNX_VER_MIN(6,15,0) /* fpregs_unlock may do more than just preempt_enable, so only when necessary now. */
    17821782    if (fCtxHook)
    17831783#  endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette