Changeset 74786 in vbox
- Timestamp:
- Oct 12, 2018 10:20:59 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 125730
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vm.h
r74785 r74786 658 658 659 659 /** @def VMCPU_FF_CLEAR 660 * Clears a force action flag for the given VCPU.660 * Clears a single force action flag for the given VCPU. 661 661 * 662 662 * @param pVCpu The cross context virtual CPU structure. 663 663 * @param fFlag The flag to clear. 664 664 */ 665 #define VMCPU_FF_CLEAR(pVCpu, fFlag) ASMAtomicAndU32(&(pVCpu)->fLocalForcedActions, ~(fFlag)) 665 #if !defined(VBOX_STRICT) || !defined(RT_COMPILER_SUPPORTS_LAMBDA) 666 # define VMCPU_FF_CLEAR(pVCpu, fFlag) ASMAtomicAndU32(&(pVCpu)->fLocalForcedActions, ~(fFlag)) 667 #else 668 # define VMCPU_FF_CLEAR(pVCpu, fFlag) \ 669 ([](PVMCPU a_pVCpu) -> void \ 670 { \ 671 AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \ 672 ASMAtomicAndU32(&a_pVCpu->fLocalForcedActions, ~(fFlag)); \ 673 }(pVCpu)) 674 #endif 675 676 /** @def VMCPU_FF_CLEAR_MASK 677 * Clears two or more force action flags for the given VCPU. 678 * 679 * @param pVCpu The cross context virtual CPU structure. 680 * @param fFlags The flags to clear. 681 */ 682 #define VMCPU_FF_CLEAR_MASK(pVCpu, fFlags) ASMAtomicAndU32(&(pVCpu)->fLocalForcedActions, ~(fFlags)) 666 683 667 684 /** @def VM_FF_IS_SET -
trunk/src/VBox/VMM/VMMR3/EMR3Nem.cpp
r72917 r74786 310 310 { 311 311 Log(("NEM: TODO: Make VMCPU_FF_PGM_SYNC_CR3 / VMCPU_FF_PGM_SYNC_CR3_NON_GLOBAL quiet! (%#x)\n", pVCpu->fLocalForcedActions)); 312 VMCPU_FF_CLEAR (pVCpu, VMCPU_FF_PGM_SYNC_CR3 | VMCPU_FF_PGM_SYNC_CR3_NON_GLOBAL);312 VMCPU_FF_CLEAR_MASK(pVCpu, VMCPU_FF_PGM_SYNC_CR3 | VMCPU_FF_PGM_SYNC_CR3_NON_GLOBAL); 313 313 } 314 314 -
trunk/src/VBox/VMM/VMMR3/VM.cpp
r73351 r74786 2873 2873 2874 2874 /* Clear all pending forced actions. */ 2875 VMCPU_FF_CLEAR (pVCpu, VMCPU_FF_ALL_MASK & ~VMCPU_FF_REQUEST);2875 VMCPU_FF_CLEAR_MASK(pVCpu, VMCPU_FF_ALL_MASK & ~VMCPU_FF_REQUEST); 2876 2876 2877 2877 /*
Note:
See TracChangeset
for help on using the changeset viewer.