VirtualBox

Changeset 71692 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 6, 2018 7:26:02 AM (7 years ago)
Author:
vboxsync
Message:

VMM/HMSVMR0: Increment RIP on handling PAUSE #VMEXIT and intercept PAUSE when pause-filtering is used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r71565 r71692  
    895895    bool const fPauseFilter          = RT_BOOL(pVM->hm.s.svm.u32Features & X86_CPUID_SVM_FEATURE_EDX_PAUSE_FILTER);
    896896    bool const fPauseFilterThreshold = RT_BOOL(pVM->hm.s.svm.u32Features & X86_CPUID_SVM_FEATURE_EDX_PAUSE_FILTER_THRESHOLD);
    897     bool const fUsePauseFilter       = fPauseFilter && pVM->hm.s.svm.cPauseFilter && pVM->hm.s.svm.cPauseFilterThresholdTicks;
     897    bool const fUsePauseFilter       = fPauseFilter && pVM->hm.s.svm.cPauseFilter;
    898898
    899899    bool const fLbrVirt              = RT_BOOL(pVM->hm.s.svm.u32Features & X86_CPUID_SVM_FEATURE_EDX_LBR_VIRT);
     
    10381038            if (fPauseFilterThreshold)
    10391039                pVmcb->ctrl.u16PauseFilterThreshold = pVM->hm.s.svm.cPauseFilterThresholdTicks;
     1040            pVmcb->ctrl.u32InterceptXcpt |= SVM_CTRL_INTERCEPT_PAUSE;
    10401041        }
    10411042
     
    73117312    HMSVM_VALIDATE_EXIT_HANDLER_PARAMS();
    73127313    STAM_COUNTER_INC(&pVCpu->hm.s.StatExitPause);
     7314    hmR0SvmAdvanceRipHwAssist(pVCpu, pCtx, 2);
    73137315    return VINF_EM_RAW_INTERRUPT;
    73147316}
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