VirtualBox

Changeset 4564 in vbox


Ignore:
Timestamp:
Sep 6, 2007 11:11:56 AM (17 years ago)
Author:
vboxsync
Message:

Don't allow gc to hc virt address conversions from non-EMT threads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMDevice.cpp

    r4558 r4564  
    32663266             pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, GCPhys, cbRange, ppvHC));
    32673267
     3268    if (!VM_IS_EMT(pDevIns->Internal.s.pVMHC))
     3269        return VERR_ACCESS_DENIED;
     3270
    32683271    int rc = PGMPhysGCPhys2HCPtr(pDevIns->Internal.s.pVMHC, GCPhys, cbRange, ppvHC);
    32693272
     
    32833286             pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, GCPtr, pHCPtr));
    32843287
     3288    if (!VM_IS_EMT(pDevIns->Internal.s.pVMHC))
     3289        return VERR_ACCESS_DENIED;
     3290
    32853291    int rc = PGMPhysGCPtr2HCPtr(pVM, GCPtr, pHCPtr);
    32863292
     
    32983304    LogFlow(("pdmR3DevHlp_PhysGCPtr2GCPhys: caller='%s'/%d: GCPtr=%VGv pGCPhys=%p\n",
    32993305             pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, GCPtr, pGCPhys));
     3306
     3307    if (!VM_IS_EMT(pDevIns->Internal.s.pVMHC))
     3308        return VERR_ACCESS_DENIED;
    33003309
    33013310    int rc = PGMPhysGCPtr2GCPhys(pVM, GCPtr, pGCPhys);
Note: See TracChangeset for help on using the changeset viewer.

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