VirtualBox

Ignore:
Timestamp:
Feb 10, 2021 4:20:11 PM (4 years ago)
Author:
vboxsync
Message:

AMD IOMMU: bugref:9654 Replace IOMMU device lock with the PDM lock and use a separate lock for the IOTLB/DTE cache.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/PDMR0DevHlp.cpp

    r87478 r87691  
    16651665 */
    16661666
     1667/** @interface_method_impl{PDMIOMMUHLPR0,pfnLock} */
     1668static DECLCALLBACK(int) pdmR0IommuHlp_Lock(PPDMDEVINS pDevIns, int rc)
     1669{
     1670    PDMDEV_ASSERT_DEVINS(pDevIns);
     1671    return pdmLockEx(pDevIns->Internal.s.pGVM, rc);
     1672}
     1673
     1674
     1675/** @interface_method_impl{PDMIOMMUHLPR0,pfnUnlock} */
     1676static DECLCALLBACK(void) pdmR0IommuHlp_Unlock(PPDMDEVINS pDevIns)
     1677{
     1678    PDMDEV_ASSERT_DEVINS(pDevIns);
     1679    pdmUnlock(pDevIns->Internal.s.pGVM);
     1680}
     1681
     1682
    16671683/**
    16681684 * The Ring-0 IOMMU Helper Callbacks.
     
    16711687{
    16721688    PDM_IOMMUHLPR0_VERSION,
     1689    pdmR0IommuHlp_Lock,
     1690    pdmR0IommuHlp_Unlock,
    16731691    PDM_IOMMUHLPR0_VERSION, /* the end */
    16741692};
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