Changeset 81416 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Oct 21, 2019 3:14:39 PM (5 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/PDMR0Device.cpp
r81406 r81416 718 718 PDMDEV_ASSERT_DEVINS(pDevIns); 719 719 LogFlow(("pdmR0DevHlp_TaskTrigger: caller='%s'/%d: hTask=%RU64\n", pDevIns->pReg->szName, pDevIns->iInstance, hTask)); 720 PGVM pGVM = pDevIns->Internal.s.pGVM; 721 VM_ASSERT_EMT(pGVM); 722 723 int rc = PDMTaskTrigger(pGVM, PDMTASKTYPE_DEV, pDevIns->pDevInsForR3, hTask); 720 721 int rc = PDMTaskTrigger(pDevIns->Internal.s.pGVM, PDMTASKTYPE_DEV, pDevIns->pDevInsForR3, hTask); 724 722 725 723 LogFlow(("pdmR0DevHlp_TaskTrigger: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 733 731 PDMDEV_ASSERT_DEVINS(pDevIns); 734 732 LogFlow(("pdmR0DevHlp_SUPSemEventSignal: caller='%s'/%d: hEvent=%p\n", pDevIns->pReg->szName, pDevIns->iInstance, hEvent)); 735 PGVM pGVM = pDevIns->Internal.s.pGVM; 736 VM_ASSERT_EMT(pGVM); 737 738 int rc = SUPSemEventSignal(pGVM->pSession, hEvent); 733 734 int rc = SUPSemEventSignal(pDevIns->Internal.s.pGVM->pSession, hEvent); 739 735 740 736 LogFlow(("pdmR0DevHlp_SUPSemEventSignal: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 749 745 LogFlow(("pdmR0DevHlp_SUPSemEventWaitNoResume: caller='%s'/%d: hEvent=%p cNsTimeout=%RU32\n", 750 746 pDevIns->pReg->szName, pDevIns->iInstance, hEvent, cMillies)); 751 PGVM pGVM = pDevIns->Internal.s.pGVM; 752 VM_ASSERT_EMT(pGVM); 753 754 int rc = SUPSemEventWaitNoResume(pGVM->pSession, hEvent, cMillies); 747 748 int rc = SUPSemEventWaitNoResume(pDevIns->Internal.s.pGVM->pSession, hEvent, cMillies); 755 749 756 750 LogFlow(("pdmR0DevHlp_SUPSemEventWaitNoResume: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 765 759 LogFlow(("pdmR0DevHlp_SUPSemEventWaitNsAbsIntr: caller='%s'/%d: hEvent=%p uNsTimeout=%RU64\n", 766 760 pDevIns->pReg->szName, pDevIns->iInstance, hEvent, uNsTimeout)); 767 PGVM pGVM = pDevIns->Internal.s.pGVM; 768 VM_ASSERT_EMT(pGVM); 769 770 int rc = SUPSemEventWaitNsAbsIntr(pGVM->pSession, hEvent, uNsTimeout); 761 762 int rc = SUPSemEventWaitNsAbsIntr(pDevIns->Internal.s.pGVM->pSession, hEvent, uNsTimeout); 771 763 772 764 LogFlow(("pdmR0DevHlp_SUPSemEventWaitNsAbsIntr: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 781 773 LogFlow(("pdmR0DevHlp_SUPSemEventWaitNsRelIntr: caller='%s'/%d: hEvent=%p cNsTimeout=%RU64\n", 782 774 pDevIns->pReg->szName, pDevIns->iInstance, hEvent, cNsTimeout)); 783 PGVM pGVM = pDevIns->Internal.s.pGVM; 784 VM_ASSERT_EMT(pGVM); 785 786 int rc = SUPSemEventWaitNsRelIntr(pGVM->pSession, hEvent, cNsTimeout); 775 776 int rc = SUPSemEventWaitNsRelIntr(pDevIns->Internal.s.pGVM->pSession, hEvent, cNsTimeout); 787 777 788 778 LogFlow(("pdmR0DevHlp_SUPSemEventWaitNsRelIntr: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 796 786 PDMDEV_ASSERT_DEVINS(pDevIns); 797 787 LogFlow(("pdmR0DevHlp_SUPSemEventGetResolution: caller='%s'/%d:\n", pDevIns->pReg->szName, pDevIns->iInstance)); 798 PGVM pGVM = pDevIns->Internal.s.pGVM; 799 VM_ASSERT_EMT(pGVM); 800 801 uint32_t cNsResolution = SUPSemEventGetResolution(pGVM->pSession); 788 789 uint32_t cNsResolution = SUPSemEventGetResolution(pDevIns->Internal.s.pGVM->pSession); 802 790 803 791 LogFlow(("pdmR0DevHlp_SUPSemEventGetResolution: caller='%s'/%d: returns %u\n", pDevIns->pReg->szName, pDevIns->iInstance, cNsResolution)); … … 811 799 PDMDEV_ASSERT_DEVINS(pDevIns); 812 800 LogFlow(("pdmR0DevHlp_SUPSemEventMultiSignal: caller='%s'/%d: hEventMulti=%p\n", pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti)); 813 PGVM pGVM = pDevIns->Internal.s.pGVM; 814 VM_ASSERT_EMT(pGVM); 815 816 int rc = SUPSemEventMultiSignal(pGVM->pSession, hEventMulti); 801 802 int rc = SUPSemEventMultiSignal(pDevIns->Internal.s.pGVM->pSession, hEventMulti); 817 803 818 804 LogFlow(("pdmR0DevHlp_SUPSemEventMultiSignal: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 826 812 PDMDEV_ASSERT_DEVINS(pDevIns); 827 813 LogFlow(("pdmR0DevHlp_SUPSemEventMultiReset: caller='%s'/%d: hEventMulti=%p\n", pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti)); 828 PGVM pGVM = pDevIns->Internal.s.pGVM; 829 VM_ASSERT_EMT(pGVM); 830 831 int rc = SUPSemEventMultiReset(pGVM->pSession, hEventMulti); 814 815 int rc = SUPSemEventMultiReset(pDevIns->Internal.s.pGVM->pSession, hEventMulti); 832 816 833 817 LogFlow(("pdmR0DevHlp_SUPSemEventMultiReset: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 843 827 LogFlow(("pdmR0DevHlp_SUPSemEventMultiWaitNoResume: caller='%s'/%d: hEventMulti=%p cMillies=%RU32\n", 844 828 pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti, cMillies)); 845 PGVM pGVM = pDevIns->Internal.s.pGVM; 846 VM_ASSERT_EMT(pGVM); 847 848 int rc = SUPSemEventMultiWaitNoResume(pGVM->pSession, hEventMulti, cMillies); 829 830 int rc = SUPSemEventMultiWaitNoResume(pDevIns->Internal.s.pGVM->pSession, hEventMulti, cMillies); 849 831 850 832 LogFlow(("pdmR0DevHlp_SUPSemEventMultiWaitNoResume: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 860 842 LogFlow(("pdmR0DevHlp_SUPSemEventMultiWaitNsAbsIntr: caller='%s'/%d: hEventMulti=%p uNsTimeout=%RU64\n", 861 843 pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti, uNsTimeout)); 862 PGVM pGVM = pDevIns->Internal.s.pGVM; 863 VM_ASSERT_EMT(pGVM); 864 865 int rc = SUPSemEventMultiWaitNsAbsIntr(pGVM->pSession, hEventMulti, uNsTimeout); 844 845 int rc = SUPSemEventMultiWaitNsAbsIntr(pDevIns->Internal.s.pGVM->pSession, hEventMulti, uNsTimeout); 866 846 867 847 LogFlow(("pdmR0DevHlp_SUPSemEventMultiWaitNsAbsIntr: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 877 857 LogFlow(("pdmR0DevHlp_SUPSemEventMultiWaitNsRelIntr: caller='%s'/%d: hEventMulti=%p cNsTimeout=%RU64\n", 878 858 pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti, cNsTimeout)); 879 PGVM pGVM = pDevIns->Internal.s.pGVM; 880 VM_ASSERT_EMT(pGVM); 881 882 int rc = SUPSemEventMultiWaitNsRelIntr(pGVM->pSession, hEventMulti, cNsTimeout); 859 860 int rc = SUPSemEventMultiWaitNsRelIntr(pDevIns->Internal.s.pGVM->pSession, hEventMulti, cNsTimeout); 883 861 884 862 LogFlow(("pdmR0DevHlp_SUPSemEventMultiWaitNsRelIntr: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 892 870 PDMDEV_ASSERT_DEVINS(pDevIns); 893 871 LogFlow(("pdmR0DevHlp_SUPSemEventMultiGetResolution: caller='%s'/%d:\n", pDevIns->pReg->szName, pDevIns->iInstance)); 894 PGVM pGVM = pDevIns->Internal.s.pGVM; 895 VM_ASSERT_EMT(pGVM); 896 897 uint32_t cNsResolution = SUPSemEventMultiGetResolution(pGVM->pSession); 872 873 uint32_t cNsResolution = SUPSemEventMultiGetResolution(pDevIns->Internal.s.pGVM->pSession); 898 874 899 875 LogFlow(("pdmR0DevHlp_SUPSemEventMultiGetResolution: caller='%s'/%d: returns %u\n", pDevIns->pReg->szName, pDevIns->iInstance, cNsResolution)); -
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r81406 r81416 2555 2555 PDMDEV_ASSERT_DEVINS(pDevIns); 2556 2556 LogFlow(("pdmR3DevHlp_TaskTrigger: caller='%s'/%d: hTask=%RU64\n", pDevIns->pReg->szName, pDevIns->iInstance, hTask)); 2557 PVM pVM = pDevIns->Internal.s.pVMR3; 2558 VM_ASSERT_EMT(pVM); 2559 2560 int rc = PDMTaskTrigger(pVM, PDMTASKTYPE_DEV, pDevIns, hTask); 2557 2558 int rc = PDMTaskTrigger(pDevIns->Internal.s.pVMR3, PDMTASKTYPE_DEV, pDevIns, hTask); 2561 2559 2562 2560 LogFlow(("pdmR3DevHlp_TaskTrigger: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2585 2583 PDMDEV_ASSERT_DEVINS(pDevIns); 2586 2584 LogFlow(("pdmR3DevHlp_SUPSemEventClose: caller='%s'/%d: hEvent=%p\n", pDevIns->pReg->szName, pDevIns->iInstance, hEvent)); 2587 PVM pVM = pDevIns->Internal.s.pVMR3; 2588 VM_ASSERT_EMT(pVM); 2589 2590 int rc = SUPSemEventClose(pVM->pSession, hEvent); 2585 2586 int rc = SUPSemEventClose(pDevIns->Internal.s.pVMR3->pSession, hEvent); 2591 2587 2592 2588 LogFlow(("pdmR3DevHlp_SUPSemEventClose: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2600 2596 PDMDEV_ASSERT_DEVINS(pDevIns); 2601 2597 LogFlow(("pdmR3DevHlp_SUPSemEventSignal: caller='%s'/%d: hEvent=%p\n", pDevIns->pReg->szName, pDevIns->iInstance, hEvent)); 2602 PVM pVM = pDevIns->Internal.s.pVMR3; 2603 VM_ASSERT_EMT(pVM); 2604 2605 int rc = SUPSemEventSignal(pVM->pSession, hEvent); 2598 2599 int rc = SUPSemEventSignal(pDevIns->Internal.s.pVMR3->pSession, hEvent); 2606 2600 2607 2601 LogFlow(("pdmR3DevHlp_SUPSemEventSignal: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2616 2610 LogFlow(("pdmR3DevHlp_SUPSemEventWaitNoResume: caller='%s'/%d: hEvent=%p cNsTimeout=%RU32\n", 2617 2611 pDevIns->pReg->szName, pDevIns->iInstance, hEvent, cMillies)); 2618 PVM pVM = pDevIns->Internal.s.pVMR3; 2619 VM_ASSERT_EMT(pVM); 2620 2621 int rc = SUPSemEventWaitNoResume(pVM->pSession, hEvent, cMillies); 2612 2613 int rc = SUPSemEventWaitNoResume(pDevIns->Internal.s.pVMR3->pSession, hEvent, cMillies); 2622 2614 2623 2615 LogFlow(("pdmR3DevHlp_SUPSemEventWaitNoResume: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2632 2624 LogFlow(("pdmR3DevHlp_SUPSemEventWaitNsAbsIntr: caller='%s'/%d: hEvent=%p uNsTimeout=%RU64\n", 2633 2625 pDevIns->pReg->szName, pDevIns->iInstance, hEvent, uNsTimeout)); 2634 PVM pVM = pDevIns->Internal.s.pVMR3; 2635 VM_ASSERT_EMT(pVM); 2636 2637 int rc = SUPSemEventWaitNsAbsIntr(pVM->pSession, hEvent, uNsTimeout); 2626 2627 int rc = SUPSemEventWaitNsAbsIntr(pDevIns->Internal.s.pVMR3->pSession, hEvent, uNsTimeout); 2638 2628 2639 2629 LogFlow(("pdmR3DevHlp_SUPSemEventWaitNsAbsIntr: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2648 2638 LogFlow(("pdmR3DevHlp_SUPSemEventWaitNsRelIntr: caller='%s'/%d: hEvent=%p cNsTimeout=%RU64\n", 2649 2639 pDevIns->pReg->szName, pDevIns->iInstance, hEvent, cNsTimeout)); 2650 PVM pVM = pDevIns->Internal.s.pVMR3; 2651 VM_ASSERT_EMT(pVM); 2652 2653 int rc = SUPSemEventWaitNsRelIntr(pVM->pSession, hEvent, cNsTimeout); 2640 2641 int rc = SUPSemEventWaitNsRelIntr(pDevIns->Internal.s.pVMR3->pSession, hEvent, cNsTimeout); 2654 2642 2655 2643 LogFlow(("pdmR3DevHlp_SUPSemEventWaitNsRelIntr: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2663 2651 PDMDEV_ASSERT_DEVINS(pDevIns); 2664 2652 LogFlow(("pdmR3DevHlp_SUPSemEventGetResolution: caller='%s'/%d:\n", pDevIns->pReg->szName, pDevIns->iInstance)); 2665 PVM pVM = pDevIns->Internal.s.pVMR3; 2666 VM_ASSERT_EMT(pVM); 2667 2668 uint32_t cNsResolution = SUPSemEventGetResolution(pVM->pSession); 2653 2654 uint32_t cNsResolution = SUPSemEventGetResolution(pDevIns->Internal.s.pVMR3->pSession); 2669 2655 2670 2656 LogFlow(("pdmR3DevHlp_SUPSemEventGetResolution: caller='%s'/%d: returns %u\n", pDevIns->pReg->szName, pDevIns->iInstance, cNsResolution)); … … 2693 2679 PDMDEV_ASSERT_DEVINS(pDevIns); 2694 2680 LogFlow(("pdmR3DevHlp_SUPSemEventMultiClose: caller='%s'/%d: hEventMulti=%p\n", pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti)); 2695 PVM pVM = pDevIns->Internal.s.pVMR3; 2696 VM_ASSERT_EMT(pVM); 2697 2698 int rc = SUPSemEventMultiClose(pVM->pSession, hEventMulti); 2681 2682 int rc = SUPSemEventMultiClose(pDevIns->Internal.s.pVMR3->pSession, hEventMulti); 2699 2683 2700 2684 LogFlow(("pdmR3DevHlp_SUPSemEventMultiClose: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2708 2692 PDMDEV_ASSERT_DEVINS(pDevIns); 2709 2693 LogFlow(("pdmR3DevHlp_SUPSemEventMultiSignal: caller='%s'/%d: hEventMulti=%p\n", pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti)); 2710 PVM pVM = pDevIns->Internal.s.pVMR3; 2711 VM_ASSERT_EMT(pVM); 2712 2713 int rc = SUPSemEventMultiSignal(pVM->pSession, hEventMulti); 2694 2695 int rc = SUPSemEventMultiSignal(pDevIns->Internal.s.pVMR3->pSession, hEventMulti); 2714 2696 2715 2697 LogFlow(("pdmR3DevHlp_SUPSemEventMultiSignal: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2723 2705 PDMDEV_ASSERT_DEVINS(pDevIns); 2724 2706 LogFlow(("pdmR3DevHlp_SUPSemEventMultiReset: caller='%s'/%d: hEventMulti=%p\n", pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti)); 2725 PVM pVM = pDevIns->Internal.s.pVMR3; 2726 VM_ASSERT_EMT(pVM); 2727 2728 int rc = SUPSemEventMultiReset(pVM->pSession, hEventMulti); 2707 2708 int rc = SUPSemEventMultiReset(pDevIns->Internal.s.pVMR3->pSession, hEventMulti); 2729 2709 2730 2710 LogFlow(("pdmR3DevHlp_SUPSemEventMultiReset: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2740 2720 LogFlow(("pdmR3DevHlp_SUPSemEventMultiWaitNoResume: caller='%s'/%d: hEventMulti=%p cMillies=%RU32\n", 2741 2721 pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti, cMillies)); 2742 PVM pVM = pDevIns->Internal.s.pVMR3; 2743 VM_ASSERT_EMT(pVM); 2744 2745 int rc = SUPSemEventMultiWaitNoResume(pVM->pSession, hEventMulti, cMillies); 2722 2723 int rc = SUPSemEventMultiWaitNoResume(pDevIns->Internal.s.pVMR3->pSession, hEventMulti, cMillies); 2746 2724 2747 2725 LogFlow(("pdmR3DevHlp_SUPSemEventMultiWaitNoResume: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2757 2735 LogFlow(("pdmR3DevHlp_SUPSemEventMultiWaitNsAbsIntr: caller='%s'/%d: hEventMulti=%p uNsTimeout=%RU64\n", 2758 2736 pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti, uNsTimeout)); 2759 PVM pVM = pDevIns->Internal.s.pVMR3; 2760 VM_ASSERT_EMT(pVM); 2761 2762 int rc = SUPSemEventMultiWaitNsAbsIntr(pVM->pSession, hEventMulti, uNsTimeout); 2737 2738 int rc = SUPSemEventMultiWaitNsAbsIntr(pDevIns->Internal.s.pVMR3->pSession, hEventMulti, uNsTimeout); 2763 2739 2764 2740 LogFlow(("pdmR3DevHlp_SUPSemEventMultiWaitNsAbsIntr: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2774 2750 LogFlow(("pdmR3DevHlp_SUPSemEventMultiWaitNsRelIntr: caller='%s'/%d: hEventMulti=%p cNsTimeout=%RU64\n", 2775 2751 pDevIns->pReg->szName, pDevIns->iInstance, hEventMulti, cNsTimeout)); 2776 PVM pVM = pDevIns->Internal.s.pVMR3; 2777 VM_ASSERT_EMT(pVM); 2778 2779 int rc = SUPSemEventMultiWaitNsRelIntr(pVM->pSession, hEventMulti, cNsTimeout); 2752 2753 int rc = SUPSemEventMultiWaitNsRelIntr(pDevIns->Internal.s.pVMR3->pSession, hEventMulti, cNsTimeout); 2780 2754 2781 2755 LogFlow(("pdmR3DevHlp_SUPSemEventMultiWaitNsRelIntr: caller='%s'/%d: returns %Rrc\n", pDevIns->pReg->szName, pDevIns->iInstance, rc)); … … 2789 2763 PDMDEV_ASSERT_DEVINS(pDevIns); 2790 2764 LogFlow(("pdmR3DevHlp_SUPSemEventMultiGetResolution: caller='%s'/%d:\n", pDevIns->pReg->szName, pDevIns->iInstance)); 2791 PVM pVM = pDevIns->Internal.s.pVMR3; 2792 VM_ASSERT_EMT(pVM); 2793 2794 uint32_t cNsResolution = SUPSemEventMultiGetResolution(pVM->pSession); 2765 2766 uint32_t cNsResolution = SUPSemEventMultiGetResolution(pDevIns->Internal.s.pVMR3->pSession); 2795 2767 2796 2768 LogFlow(("pdmR3DevHlp_SUPSemEventMultiGetResolution: caller='%s'/%d: returns %u\n", pDevIns->pReg->szName, pDevIns->iInstance, cNsResolution));
Note:
See TracChangeset
for help on using the changeset viewer.