Changeset 74789 in vbox for trunk/include
- Timestamp:
- Oct 12, 2018 10:34:32 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vm.h
r74787 r74789 705 705 * @param pVCpu The cross context virtual CPU structure. 706 706 * @param fFlag The flag to check. 707 * @sa VMCPU_FF_IS_ANY_SET 707 708 */ 708 709 #if !defined(VBOX_STRICT) || !defined(RT_COMPILER_SUPPORTS_LAMBDA) … … 725 726 #define VM_FF_IS_PENDING(pVM, fFlags) RT_BOOL((pVM)->fGlobalForcedActions & (fFlags)) 726 727 727 /** @def VMCPU_FF_IS_ PENDING728 * Checks if one or more force action in the specified set is pendingfor the given VCPU.728 /** @def VMCPU_FF_IS_ANY_SET 729 * Checks if two or more force action flags in the specified set is set for the given VCPU. 729 730 * 730 731 * @param pVCpu The cross context virtual CPU structure. 731 732 * @param fFlags The flags to check for. 732 */ 733 #define VMCPU_FF_IS_PENDING(pVCpu, fFlags) RT_BOOL((pVCpu)->fLocalForcedActions & (fFlags)) 733 * @sa VMCPU_FF_IS_SET 734 */ 735 #define VMCPU_FF_IS_ANY_SET(pVCpu, fFlags) RT_BOOL((pVCpu)->fLocalForcedActions & (fFlags)) 734 736 735 737 /** @def VM_FF_TEST_AND_CLEAR … … 739 741 * @returns false if the bit was clear. 740 742 * @param pVM The cross context VM structure. 741 * @param iBit Bit position to check and clear742 */ 743 #define VM_FF_TEST_AND_CLEAR(pVM, iBit) (ASMAtomicBitTestAndClear(&(pVM)->fGlobalForcedActions, iBit##_BIT))743 * @param fFlag Flag constant to check and clear (_BIT is appended). 744 */ 745 #define VM_FF_TEST_AND_CLEAR(pVM, fFlag) (ASMAtomicBitTestAndClear(&(pVM)->fGlobalForcedActions, fFlag##_BIT)) 744 746 745 747 /** @def VMCPU_FF_TEST_AND_CLEAR … … 749 751 * @returns false if the bit was clear. 750 752 * @param pVCpu The cross context virtual CPU structure. 751 * @param iBit Bit position to check and clear752 */ 753 #define VMCPU_FF_TEST_AND_CLEAR(pVCpu, iBit) (ASMAtomicBitTestAndClear(&(pVCpu)->fLocalForcedActions, iBit##_BIT))753 * @param fFlag Flag constant to check and clear (_BIT is appended). 754 */ 755 #define VMCPU_FF_TEST_AND_CLEAR(pVCpu, fFlag) (ASMAtomicBitTestAndClear(&(pVCpu)->fLocalForcedActions, fFlag##_BIT)) 754 756 755 757 /** @def VM_FF_IS_PENDING_EXCEPT … … 761 763 * @param fExcpt The flags that should not be set. 762 764 */ 763 #define VM_FF_IS_PENDING_EXCEPT(pVM, fFlags, fExcpt) ( ((pVM)->fGlobalForcedActions & (fFlags)) && !((pVM)->fGlobalForcedActions & (fExcpt)) ) 765 #define VM_FF_IS_PENDING_EXCEPT(pVM, fFlags, fExcpt) \ 766 ( ((pVM)->fGlobalForcedActions & (fFlags)) && !((pVM)->fGlobalForcedActions & (fExcpt)) ) 764 767 765 768 /** @def VM_IS_EMT
Note:
See TracChangeset
for help on using the changeset viewer.