VirtualBox

Changeset 72749 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 29, 2018 7:57:05 AM (7 years ago)
Author:
vboxsync
Message:

VMM: Remove EM_NOTIFY_HM and related code unused since VirtualBox 2.1 or earlier.

Location:
trunk/src/VBox/VMM/VMMR3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/EM.cpp

    r72660 r72749  
    7373#include <iprt/stream.h>
    7474#include <iprt/thread.h>
    75 
    76 
    77 /*********************************************************************************************************************************
    78 *   Defined Constants And Macros                                                                                                 *
    79 *********************************************************************************************************************************/
    80 #if 0 /* Disabled till after 2.1.0 when we've time to test it. */
    81 #define EM_NOTIFY_HM
    82 #endif
    8375
    8476
  • trunk/src/VBox/VMM/VMMR3/EMHM.cpp

    r72634 r72749  
    5454
    5555/*********************************************************************************************************************************
    56 *   Defined Constants And Macros                                                                                                 *
    57 *********************************************************************************************************************************/
    58 #if 0 /* Disabled till after 2.1.0 when we've time to test it. */
    59 #define EM_NOTIFY_HM
    60 #endif
    61 
    62 
    63 /*********************************************************************************************************************************
    6456*   Internal Functions                                                                                                           *
    6557*********************************************************************************************************************************/
     
    228220    }
    229221
    230 #ifdef EM_NOTIFY_HM
    231     if (pVCpu->em.s.enmState == EMSTATE_DEBUG_GUEST_HM)
    232         HMR3NotifyEmulated(pVCpu);
    233 #endif
    234222    return VBOXSTRICTRC_TODO(rcStrict);
    235223}
     
    408396    STAM_COUNTER_INC(&pVCpu->em.s.StatHMExecuteCalled);
    409397
    410 #ifdef EM_NOTIFY_HM
    411     HMR3NotifyScheduled(pVCpu);
    412 #endif
    413 
    414398    /*
    415399     * Spin till we get a forced action which returns anything but VINF_SUCCESS.
  • trunk/src/VBox/VMM/VMMR3/EMR3Nem.cpp

    r72675 r72749  
    5151
    5252#include <iprt/asm.h>
    53 
    54 
    55 /*********************************************************************************************************************************
    56 *   Defined Constants And Macros                                                                                                 *
    57 *********************************************************************************************************************************/
    58 #if 0 /* Disabled till after 2.1.0 when we've time to test it. */
    59 #define EM_NOTIFY_HM
    60 #endif
    6153
    6254
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r72744 r72749  
    30943094
    30953095/**
    3096  * Notification from EM about a rescheduling into hardware assisted execution
    3097  * mode.
    3098  *
    3099  * @param   pVCpu       The cross context virtual CPU structure of the calling EMT.
    3100  */
    3101 VMMR3_INT_DECL(void) HMR3NotifyScheduled(PVMCPU pVCpu)
    3102 {
    3103     pVCpu->hm.s.fCtxChanged |= HM_CHANGED_ALL_GUEST;
    3104 }
    3105 
    3106 
    3107 /**
    3108  * Notification from EM about returning from instruction emulation (REM / EM).
    3109  *
    3110  * @param   pVCpu       The cross context virtual CPU structure.
    3111  */
    3112 VMMR3_INT_DECL(void) HMR3NotifyEmulated(PVMCPU pVCpu)
    3113 {
    3114     pVCpu->hm.s.fCtxChanged |= HM_CHANGED_ALL_GUEST;
    3115 }
    3116 
    3117 
    3118 /**
    31193096 * Checks if we are currently using hardware acceleration.
    31203097 *
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