Changeset 74795 in vbox
- Timestamp:
- Oct 12, 2018 11:24:11 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
include/VBox/vmm/vm.h (modified) (4 diffs)
-
src/VBox/VMM/VMMR3/EMHM.cpp (modified) (2 diffs)
-
src/VBox/VMM/VMMR3/EMR3Nem.cpp (modified) (2 diffs)
-
src/VBox/VMM/VMMR3/EMRaw.cpp (modified) (3 diffs)
-
src/VBox/VMM/VMMR3/NEMR3Native-win.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vm.h
r74794 r74795 654 654 * @param fFlag The flag to set. 655 655 */ 656 #define VM_FF_SET(pVM, fFlag) \ 657 do { AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); ASMAtomicOrU32(&(pVM)->fGlobalForcedActions, (fFlag)); } while (0) 656 #define VM_FF_SET(pVM, fFlag) do { \ 657 AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \ 658 AssertCompile((fFlag) == RT_BIT_32(fFlag##_BIT)); \ 659 ASMAtomicOrU32(&(pVM)->fGlobalForcedActions, (fFlag)); \ 660 } while (0) 658 661 659 662 /** @def VMCPU_FF_SET … … 664 667 * @sa VMCPU_FF_SET_MASK 665 668 */ 666 #define VMCPU_FF_SET(pVCpu, fFlag) \ 667 do { AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); ASMAtomicOrU32(&(pVCpu)->fLocalForcedActions, (fFlag)); } while (0) 669 #define VMCPU_FF_SET(pVCpu, fFlag) do { \ 670 AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \ 671 AssertCompile((fFlag) == RT_BIT_32(fFlag##_BIT)); \ 672 ASMAtomicOrU32(&(pVCpu)->fLocalForcedActions, (fFlag)); \ 673 } while (0) 668 674 669 675 /** @def VMCPU_FF_SET_MASK … … 683 689 * @param fFlag The flag to clear. 684 690 */ 685 #define VM_FF_CLEAR(pVM, fFlag) \ 686 do { AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); ASMAtomicAndU32(&(pVM)->fGlobalForcedActions, ~(fFlag)); } while (0) 691 #define VM_FF_CLEAR(pVM, fFlag) do { \ 692 AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \ 693 AssertCompile((fFlag) == RT_BIT_32(fFlag##_BIT)); \ 694 ASMAtomicAndU32(&(pVM)->fGlobalForcedActions, ~(fFlag)); \ 695 } while (0) 687 696 688 697 /** @def VMCPU_FF_CLEAR … … 692 701 * @param fFlag The flag to clear. 693 702 */ 694 #define VMCPU_FF_CLEAR(pVCpu, fFlag) \ 695 do { AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); ASMAtomicAndU32(&(pVCpu)->fLocalForcedActions, ~(fFlag)); } while (0) 703 #define VMCPU_FF_CLEAR(pVCpu, fFlag) do { \ 704 AssertCompile(RT_IS_POWER_OF_TWO(fFlag)); \ 705 AssertCompile((fFlag) == RT_BIT_32(fFlag##_BIT)); \ 706 ASMAtomicAndU32(&(pVCpu)->fLocalForcedActions, ~(fFlag)); \ 707 } while (0) 696 708 697 709 /** @def VMCPU_FF_CLEAR_MASK -
trunk/src/VBox/VMM/VMMR3/EMHM.cpp
r74791 r74795 118 118 * normal FF processing the caller or the next call can deal with them. 119 119 */ 120 VMCPU_FF_CLEAR (pVCpu, VMCPU_FF_RESUME_GUEST_MASK);120 VMCPU_FF_CLEAR_MASK(pVCpu, VMCPU_FF_RESUME_GUEST_MASK); 121 121 if ( VM_FF_IS_ANY_SET(pVM, VM_FF_HIGH_PRIORITY_POST_MASK) 122 122 || VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HIGH_PRIORITY_POST_MASK)) … … 464 464 * Deal with high priority post execution FFs before doing anything else. 465 465 */ 466 VMCPU_FF_CLEAR (pVCpu, VMCPU_FF_RESUME_GUEST_MASK);466 VMCPU_FF_CLEAR_MASK(pVCpu, VMCPU_FF_RESUME_GUEST_MASK); 467 467 if ( VM_FF_IS_ANY_SET(pVM, VM_FF_HIGH_PRIORITY_POST_MASK) 468 468 || VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HIGH_PRIORITY_POST_MASK)) -
trunk/src/VBox/VMM/VMMR3/EMR3Nem.cpp
r74791 r74795 118 118 * normal FF processing the caller or the next call can deal with them. 119 119 */ 120 VMCPU_FF_CLEAR (pVCpu, VMCPU_FF_RESUME_GUEST_MASK);120 VMCPU_FF_CLEAR_MASK(pVCpu, VMCPU_FF_RESUME_GUEST_MASK); 121 121 if ( VM_FF_IS_ANY_SET(pVM, VM_FF_HIGH_PRIORITY_POST_MASK) 122 122 || VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HIGH_PRIORITY_POST_MASK)) … … 447 447 * Deal with high priority post execution FFs before doing anything else. 448 448 */ 449 VMCPU_FF_CLEAR (pVCpu, VMCPU_FF_RESUME_GUEST_MASK);449 VMCPU_FF_CLEAR_MASK(pVCpu, VMCPU_FF_RESUME_GUEST_MASK); 450 450 if ( VM_FF_IS_ANY_SET(pVM, VM_FF_HIGH_PRIORITY_POST_MASK) 451 451 || VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HIGH_PRIORITY_POST_MASK)) -
trunk/src/VBox/VMM/VMMR3/EMRaw.cpp
r74791 r74795 137 137 Log(("emR3RawResumeHyper: cs:eip=%RTsel:%RGr efl=%RGr - returned from GC with rc=%Rrc\n", pVCpu->cpum.GstCtx.cs.Sel, pVCpu->cpum.GstCtx.eip, pVCpu->cpum.GstCtx.eflags, rc)); 138 138 rc = CPUMRawLeave(pVCpu, rc); 139 VMCPU_FF_CLEAR (pVCpu, VMCPU_FF_RESUME_GUEST_MASK);139 VMCPU_FF_CLEAR_MASK(pVCpu, VMCPU_FF_RESUME_GUEST_MASK); 140 140 141 141 /* … … 207 207 || rc == VINF_EM_RAW_INTERRUPT); 208 208 rc = CPUMRawLeave(pVCpu, rc); 209 VMCPU_FF_CLEAR (pVCpu, VMCPU_FF_RESUME_GUEST_MASK);209 VMCPU_FF_CLEAR_MASK(pVCpu, VMCPU_FF_RESUME_GUEST_MASK); 210 210 211 211 /* … … 1416 1416 */ 1417 1417 rc = CPUMRawLeave(pVCpu, rc); 1418 VMCPU_FF_CLEAR (pVCpu, VMCPU_FF_RESUME_GUEST_MASK);1418 VMCPU_FF_CLEAR_MASK(pVCpu, VMCPU_FF_RESUME_GUEST_MASK); 1419 1419 if ( VM_FF_IS_ANY_SET(pVM, VM_FF_HIGH_PRIORITY_POST_MASK) 1420 1420 || VMCPU_FF_IS_ANY_SET(pVCpu, VMCPU_FF_HIGH_PRIORITY_POST_MASK)) -
trunk/src/VBox/VMM/VMMR3/NEMR3Native-win.cpp
r74791 r74795 1709 1709 & ~VMCPU_FF_RESUME_GUEST_MASK)) 1710 1710 { 1711 VMCPU_FF_CLEAR (pVCpu, VMCPU_FF_RESUME_GUEST_MASK);1711 VMCPU_FF_CLEAR_MASK(pVCpu, VMCPU_FF_RESUME_GUEST_MASK); 1712 1712 continue; 1713 1713 }
Note:
See TracChangeset
for help on using the changeset viewer.

