VirtualBox

Changeset 91688 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Oct 12, 2021 12:21:10 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147416
Message:

VMM/NEM: Added some more #ifdef'ing to reduce the amount of ioctl probing to what we actually need. bugref:10118

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp

    r91679 r91688  
    178178/** Info about the VidGetPartitionProperty I/O control interface. */
    179179static NEMWINIOCTL g_IoCtlGetPartitionProperty;
     180#if defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED)
    180181/** Info about the VidStartVirtualProcessor I/O control interface. */
    181182static NEMWINIOCTL g_IoCtlStartVirtualProcessor;
     
    184185/** Info about the VidMessageSlotHandleAndGetNext I/O control interface. */
    185186static NEMWINIOCTL g_IoCtlMessageSlotHandleAndGetNext;
     187#endif
    186188#ifdef LOG_ENABLED
    187189/** Info about the VidMessageSlotMap I/O control interface - for logging. */
     
    843845}
    844846
     847#if defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED)
    845848
    846849/**
     
    944947}
    945948
     949#endif /* defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED) */
    946950
    947951#ifdef LOG_ENABLED
     
    10161020
    10171021    int rcRet = VINF_SUCCESS;
     1022#if defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED)
     1023
    10181024    /* VidStartVirtualProcessor */
    10191025    *g_ppfnVidNtDeviceIoControlFile = nemR3WinIoctlDetector_StartVirtualProcessor;
     
    10521058            g_IoCtlMessageSlotHandleAndGetNext.cbOutput));
    10531059
     1060#endif /* defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED) */
    10541061#ifdef LOG_ENABLED
    10551062    /* The following are only for logging: */
     
    10981105    pVM->nem.s.IoCtlGetHvPartitionId            = g_IoCtlGetHvPartitionId;
    10991106    pVM->nem.s.IoCtlGetPartitionProperty        = g_IoCtlGetPartitionProperty;
     1107#ifdef NEM_WIN_WITH_RING0_RUNLOOP
    11001108    pVM->nem.s.IoCtlStartVirtualProcessor       = g_IoCtlStartVirtualProcessor;
    11011109    pVM->nem.s.IoCtlStopVirtualProcessor        = g_IoCtlStopVirtualProcessor;
    11021110    pVM->nem.s.IoCtlMessageSlotHandleAndGetNext = g_IoCtlMessageSlotHandleAndGetNext;
     1111#endif
    11031112    return rcRet;
    11041113}
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