VirtualBox

Changeset 74791 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Oct 12, 2018 10:44:17 AM (6 years ago)
Author:
vboxsync
Message:

vm.h,VMM,REM: s/VM_FF_IS_PENDING/VM_FF_IS_ANY_SET/g to emphasize the plurality of the flags argument and encourage using VM_FF_IS_SET. bugref:9180

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

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

    r74790 r74791  
    42204220
    42214221    PVM pVM = pVCpu->CTX_SUFF(pVM);
    4222     if (   VM_FF_IS_PENDING(pVM, !pVCpu->hm.s.fSingleInstruction
     4222    if (   VM_FF_IS_ANY_SET(pVM, !pVCpu->hm.s.fSingleInstruction
    42234223                            ? VM_FF_HP_R0_PRE_HM_MASK : VM_FF_HP_R0_PRE_HM_STEP_MASK)
    42244224        || VMCPU_FF_IS_ANY_SET(pVCpu, !pVCpu->hm.s.fSingleInstruction
     
    42394239        /* Pending HM-to-R3 operations (critsects, timers, EMT rendezvous etc.) */
    42404240        /* -XXX- what was that about single stepping?  */
    4241         if (   VM_FF_IS_PENDING(pVM, VM_FF_HM_TO_R3_MASK)
     4241        if (   VM_FF_IS_ANY_SET(pVM, VM_FF_HM_TO_R3_MASK)
    42424242            || VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HM_TO_R3_MASK))
    42434243        {
     
    43694369     */
    43704370    pSvmTransient->fEFlags = ASMIntDisableFlags();
    4371     if (   VM_FF_IS_PENDING(pVM, VM_FF_EMT_RENDEZVOUS | VM_FF_TM_VIRTUAL_SYNC)
     4371    if (   VM_FF_IS_ANY_SET(pVM, VM_FF_EMT_RENDEZVOUS | VM_FF_TM_VIRTUAL_SYNC)
    43724372        || VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HM_TO_R3_MASK))
    43734373    {
     
    44824482     */
    44834483    pSvmTransient->fEFlags = ASMIntDisableFlags();
    4484     if (   VM_FF_IS_PENDING(pVM, VM_FF_EMT_RENDEZVOUS | VM_FF_TM_VIRTUAL_SYNC)
     4484    if (   VM_FF_IS_ANY_SET(pVM, VM_FF_EMT_RENDEZVOUS | VM_FF_TM_VIRTUAL_SYNC)
    44854485        || VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HM_TO_R3_MASK))
    44864486    {
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r74790 r74791  
    69006900    PVM pVM = pVCpu->CTX_SUFF(pVM);
    69016901    if (  !fStepping
    6902         ?    !VM_FF_IS_PENDING(pVM, VM_FF_HP_R0_PRE_HM_MASK)
     6902        ?    !VM_FF_IS_ANY_SET(pVM, VM_FF_HP_R0_PRE_HM_MASK)
    69036903          && !VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HP_R0_PRE_HM_MASK)
    6904         :    !VM_FF_IS_PENDING(pVM, VM_FF_HP_R0_PRE_HM_STEP_MASK)
     6904        :    !VM_FF_IS_ANY_SET(pVM, VM_FF_HP_R0_PRE_HM_STEP_MASK)
    69056905          && !VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HP_R0_PRE_HM_STEP_MASK) )
    69066906        return VINF_SUCCESS;
     
    69226922
    69236923    /* Pending HM-to-R3 operations (critsects, timers, EMT rendezvous etc.) */
    6924     if (   VM_FF_IS_PENDING(pVM, VM_FF_HM_TO_R3_MASK)
     6924    if (   VM_FF_IS_ANY_SET(pVM, VM_FF_HM_TO_R3_MASK)
    69256925        || VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HM_TO_R3_MASK))
    69266926    {
     
    85848584    pVmxTransient->fEFlags = ASMIntDisableFlags();
    85858585
    8586     if (   (   !VM_FF_IS_PENDING(pVM, VM_FF_EMT_RENDEZVOUS | VM_FF_TM_VIRTUAL_SYNC)
     8586    if (   (   !VM_FF_IS_ANY_SET(pVM, VM_FF_EMT_RENDEZVOUS | VM_FF_TM_VIRTUAL_SYNC)
    85878587            && !VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HM_TO_R3_MASK))
    85888588        || (   fStepping /* Optimized for the non-stepping case, so a bit of unnecessary work when stepping. */
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