VirtualBox

Ignore:
Timestamp:
Oct 21, 2021 6:45:26 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147725
Message:

VMM,Devices: Eliminate direct calls to VMMR3 and VMR3 APIs and introduce callbacks in the device helper callback table, bugref:10074

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevATA.cpp

    r90500 r91920  
    37893789
    37903790                    ataR3LockLeave(pDevIns, pCtl);
    3791                     rc = VMR3ReqPriorityCallWait(PDMDevHlpGetVM(pDevIns), VMCPUID_ANY,
    3792                                                  (PFNRT)pDevR3->pDrvMount->pfnUnmount, 3,
    3793                                                  pDevR3->pDrvMount, false /*=fForce*/, true /*=fEject*/);
     3791                    rc = PDMDevHlpVMReqPriorityCallWait(pDevIns, VMCPUID_ANY,
     3792                                                        (PFNRT)pDevR3->pDrvMount->pfnUnmount, 3,
     3793                                                        pDevR3->pDrvMount, false /*=fForce*/, true /*=fEject*/);
    37943794                    Assert(RT_SUCCESS(rc) || rc == VERR_PDM_MEDIA_LOCKED || rc == VERR_PDM_MEDIA_NOT_MOUNTED);
    37953795                    if (RT_SUCCESS(rc) && pThisCC->pMediaNotify)
    37963796                    {
    3797                         rc = VMR3ReqCallNoWait(PDMDevHlpGetVM(pDevIns), VMCPUID_ANY,
    3798                                                (PFNRT)pThisCC->pMediaNotify->pfnEjected, 2,
    3799                                                pThisCC->pMediaNotify, s->iLUN);
     3797                        rc = PDMDevHlpVMReqCallNoWait(pDevIns, VMCPUID_ANY,
     3798                                                      (PFNRT)pThisCC->pMediaNotify->pfnEjected, 2,
     3799                                                      pThisCC->pMediaNotify, s->iLUN);
    38003800                        AssertRC(rc);
    38013801                    }
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette