VirtualBox

Ignore:
Timestamp:
Apr 13, 2012 12:45:18 PM (13 years ago)
Author:
vboxsync
Message:

Let the other hosts use page lists again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBGLInternal.h

    r38407 r40901  
    1 /* $Revision$ */
     1/* Id: 73443 $ */
    22/** @file
    33 * VBoxGuestLibR0 - Internal header.
     
    55
    66/*
    7  * Copyright (C) 2006-2007 Oracle Corporation
     7 * Copyright (C) 2006-2012 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    121121
    122122/**
    123  * Internal macro for checking whether we can pass phyical page lists to the
     123 * Internal macro for checking whether we can pass physical page lists to the
    124124 * host.
    125125 *
    126126 * ASSUMES that vbglR0Enter has been called already.
     127 *
     128 * @param   a_fLocked       For the windows shared folders workarounds.
     129 *
     130 * @remarks Disable the PageList feature for 64-bit Windows, because shared
     131 *          folders do not work, if this is enabled. This should be reenabled
     132 *          again when the problem is fixed.
     133 * @remarks Disabled the PageList feature for 32-bit Windows, see xTracker
     134 *          ticket 6096 and public ticket 10290. Hopefully this is the same
     135 *          issue as on Windows/AMD64.
    127136 */
    128 #if defined(RT_OS_WINDOWS) && defined(RT_ARCH_AMD64)
    129 /* Disable the PageList feature for 64 bit Windows, because shared folders do not work,
    130  * if this is enabled. This should be reenabled again when the problem is fixed.
    131  */
    132 #define VBGLR0_CAN_USE_PHYS_PAGE_LIST() \
    133     ( 0 )
     137#if defined(RT_OS_WINDOWS)
     138# ifdef RT_ARCH_AMD64
     139#  define VBGLR0_CAN_USE_PHYS_PAGE_LIST(a_fLocked)  ( 0 )
     140# else
     141#  define VBGLR0_CAN_USE_PHYS_PAGE_LIST(a_fLocked) \
     142     ( !(a_fLocked) && (g_vbgldata.hostVersion.features & VMMDEV_HVF_HGCM_PHYS_PAGE_LIST) )
     143# endif
    134144#else
    135 #define VBGLR0_CAN_USE_PHYS_PAGE_LIST() \
     145# define VBGLR0_CAN_USE_PHYS_PAGE_LIST(a_fLocked) \
    136146    ( !!(g_vbgldata.hostVersion.features & VMMDEV_HVF_HGCM_PHYS_PAGE_LIST) )
    137147#endif
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