VirtualBox

Ignore:
Timestamp:
Mar 5, 2018 10:59:17 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121103
Message:

SUPDrv,VMMR0: Prepped for extending the fast I/O control interface a bit for NEM; SUPDRV version increment. bugref:9044

File:
1 edited

Legend:

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

    r59217 r71198  
    315315     * Deal with the fast ioctl path first.
    316316     */
    317     if (   (   ulCmd == SUP_IOCTL_FAST_DO_RAW_RUN
    318             || ulCmd == SUP_IOCTL_FAST_DO_HM_RUN
    319             || ulCmd == SUP_IOCTL_FAST_DO_NOP)
    320         && pSession->fUnrestricted == true)
    321         return supdrvIOCtlFast(ulCmd, *(uint32_t *)pvData, &g_VBoxDrvFreeBSDDevExt, pSession);
     317    AssertCompile((SUP_IOCTL_FAST_DO_FIRST & 0xff) == (SUP_IOCTL_FLAG | 64));
     318    if (   (uintptr_t)(iCmd - SUP_IOCTL_FAST_DO_FIRST) < (uintptr_t)32
     319        && pSession->fUnrestricted)
     320        return supdrvIOCtlFast(ulCmd - SUP_IOCTL_FAST_DO_FIRST, *(uint32_t *)pvData, &g_VBoxDrvFreeBSDDevExt, pSession);
    322321
    323322    return VBoxDrvFreeBSDIOCtlSlow(pSession, ulCmd, pvData, pTd);
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