VirtualBox

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


Ignore:
Timestamp:
Oct 12, 2021 1:31:34 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147421
Message:

VMM/NEM: Made it build without NEM_WIN_USE_HYPERCALLS_FOR_PAGES again. #ifdef'ed a lot more based on NEM_WIN_USE_HYPERCALLS_FOR_PAGES (basically ring-0 ends up as a stub if it's not defined). bugref:10118

File:
1 edited

Legend:

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

    r91688 r91692  
    174174/** Pointer to the NtDeviceIoControlFile import table entry. */
    175175static decltype(NtDeviceIoControlFile) **g_ppfnVidNtDeviceIoControlFile;
     176#if defined(NEM_WIN_USE_HYPERCALLS_FOR_PAGES) || defined(LOG_ENABLED)
    176177/** Info about the VidGetHvPartitionId I/O control interface. */
    177178static NEMWINIOCTL g_IoCtlGetHvPartitionId;
    178179/** Info about the VidGetPartitionProperty I/O control interface. */
    179180static NEMWINIOCTL g_IoCtlGetPartitionProperty;
     181#endif
    180182#if defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED)
    181183/** Info about the VidStartVirtualProcessor I/O control interface. */
     
    241243*   Internal Functions                                                                                                           *
    242244*********************************************************************************************************************************/
     245DECLINLINE(int) nemR3NativeGCPhys2R3PtrReadOnly(PVM pVM, RTGCPHYS GCPhys, const void **ppv);
     246DECLINLINE(int) nemR3NativeGCPhys2R3PtrWriteable(PVM pVM, RTGCPHYS GCPhys, void **ppv);
    243247
    244248/*
     
    791795}
    792796
     797#if defined(NEM_WIN_USE_HYPERCALLS_FOR_PAGES) || defined(LOG_ENABLED)
    793798
    794799/**
     
    845850}
    846851
     852#endif /* defined(NEM_WIN_USE_HYPERCALLS_FOR_PAGES) || defined(LOG_ENABLED) */
    847853#if defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED)
    848854
     
    985991static int nemR3WinInitDiscoverIoControlProperties(PVM pVM, PRTERRINFO pErrInfo)
    986992{
     993    RT_NOREF(pVM, pErrInfo);
     994
    987995    /*
    988996     * Probe the I/O control information for select VID APIs so we can use
     
    990998     *
    991999     */
     1000#if defined(NEM_WIN_USE_HYPERCALLS_FOR_PAGES) || defined(LOG_ENABLED)
    9921001    decltype(NtDeviceIoControlFile) * const pfnOrg = *g_ppfnVidNtDeviceIoControlFile;
    9931002
     
    10191028            g_IoCtlGetPartitionProperty.uFunction, g_IoCtlGetPartitionProperty.cbInput, g_IoCtlGetPartitionProperty.cbOutput));
    10201029
     1030#endif
    10211031    int rcRet = VINF_SUCCESS;
    10221032#if defined(NEM_WIN_WITH_RING0_RUNLOOP) || defined(LOG_ENABLED)
     
    11031113
    11041114    /* Done. */
     1115#ifdef NEM_WIN_USE_HYPERCALLS_FOR_PAGES
    11051116    pVM->nem.s.IoCtlGetHvPartitionId            = g_IoCtlGetHvPartitionId;
    11061117    pVM->nem.s.IoCtlGetPartitionProperty        = g_IoCtlGetPartitionProperty;
     1118#endif
    11071119#ifdef NEM_WIN_WITH_RING0_RUNLOOP
    11081120    pVM->nem.s.IoCtlStartVirtualProcessor       = g_IoCtlStartVirtualProcessor;
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