VirtualBox

Changeset 89065 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 17, 2021 5:40:02 AM (4 years ago)
Author:
vboxsync
Message:

Intel IOMMU: bugref:9967 Add pfnLockIsOwner for I/O APIC helper (for upcoming changes).

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r88641 r89065  
    15291529
    15301530
     1531/** @interface_method_impl{PDMIOAPICHLP,pfnUnlock} */
     1532static DECLCALLBACK(bool) pdmR0IoApicHlp_LockIsOwner(PPDMDEVINS pDevIns)
     1533{
     1534    PDMDEV_ASSERT_DEVINS(pDevIns);
     1535    return pdmLockIsOwner(pDevIns->Internal.s.pGVM);
     1536}
     1537
     1538
    15311539/** @interface_method_impl{PDMIOAPICHLP,pfnIommuMsiRemap} */
    15321540static DECLCALLBACK(int) pdmR0IoApicHlp_IommuMsiRemap(PPDMDEVINS pDevIns, uint16_t idDevice, PCMSIMSG pMsiIn, PMSIMSG pMsiOut)
     
    15611569    pdmR0IoApicHlp_Lock,
    15621570    pdmR0IoApicHlp_Unlock,
     1571    pdmR0IoApicHlp_LockIsOwner,
    15631572    pdmR0IoApicHlp_IommuMsiRemap,
    15641573    PDM_IOAPICHLP_VERSION
  • trunk/src/VBox/VMM/VMMR3/PDMDevMiscHlp.cpp

    r88639 r89065  
    141141
    142142
     143/** @interface_method_impl{PDMIOAPICHLP,pfnLockIsOwner} */
     144static DECLCALLBACK(bool) pdmR3IoApicHlp_LockIsOwner(PPDMDEVINS pDevIns)
     145{
     146    PDMDEV_ASSERT_DEVINS(pDevIns);
     147    LogFlow(("pdmR3IoApicHlp_LockIsOwner: caller='%s'/%d\n", pDevIns->pReg->szName, pDevIns->iInstance));
     148    return pdmLockIsOwner(pDevIns->Internal.s.pVMR3);
     149}
     150
     151
    143152/** @interface_method_impl{PDMIOAPICHLP,pfnIommuMsiRemap} */
    144153static DECLCALLBACK(int) pdmR3IoApicHlp_IommuMsiRemap(PPDMDEVINS pDevIns, uint16_t idDevice, PCMSIMSG pMsiIn, PMSIMSG pMsiOut)
     
    167176    pdmR3IoApicHlp_Lock,
    168177    pdmR3IoApicHlp_Unlock,
     178    pdmR3IoApicHlp_LockIsOwner,
    169179    pdmR3IoApicHlp_IommuMsiRemap,
    170180    PDM_IOAPICHLP_VERSION /* the end */
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