VirtualBox

Changeset 88697 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 26, 2021 7:21:39 AM (4 years ago)
Author:
vboxsync
Message:

Intel IOMMU: bugref:9967 Comments and nits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp

    r88695 r88697  
    974974 *
    975975 * @returns @c true if the fault can be recorded, @c false otherwise.
    976  * @param   pThis   The shared DMAR device state.
    977  */
    978 static bool dmarPrimaryFaultCanRecord(PDMAR pThis)
    979 {
     976 * @param   pDevIns     The IOMMU device instance.
     977 * @param   pThis       The shared DMAR device state.
     978 */
     979static bool dmarPrimaryFaultCanRecord(PPDMDEVINS pDevIns, PDMAR pThis)
     980{
     981    PCDMARCC pThisCC = PDMDEVINS_2_DATA_CC(pDevIns, PCDMARCC);
     982    DMAR_ASSERT_LOCK_IS_OWNER(pDevIns, pThisCC);
     983
    980984    uint32_t uFstsReg = dmarRegReadRaw32(pThis, VTD_MMIO_OFF_FSTS_REG);
    981985    if (uFstsReg & VTD_BF_FSTS_REG_PFO_MASK)
     
    12681272        switch (off)
    12691273        {
    1270             case VTD_MMIO_OFF_GCMD_REG:
     1274            case VTD_MMIO_OFF_GCMD_REG:         /* 32-bit */
    12711275            {
    12721276                rcStrict = dmarGcmdRegWrite(pDevIns, uRegWritten);
     
    12741278            }
    12751279
    1276             case VTD_MMIO_OFF_CCMD_REG:
     1280            case VTD_MMIO_OFF_CCMD_REG:         /* 64-bit */
    12771281            case VTD_MMIO_OFF_CCMD_REG + 4:
    12781282            {
     
    12811285            }
    12821286
    1283             case VTD_MMIO_OFF_IQT_REG:
    1284             /*   VTD_MMIO_OFF_IQT_REG + 4: (RsvdZ) */
     1287            case VTD_MMIO_OFF_IQT_REG:          /* 64-bit */
     1288            /*   VTD_MMIO_OFF_IQT_REG + 4: */   /* High 32-bits reserved. */
    12851289            {
    12861290                rcStrict = dmarIqtRegWrite(pDevIns, offReg, uRegWritten);
     
    12881292            }
    12891293
    1290             case VTD_MMIO_OFF_IQA_REG:
    1291             /*   VTD_MMIO_OFF_IQA_REG + 4: (Data) */
     1294            case VTD_MMIO_OFF_IQA_REG:          /* 64-bit */
     1295            /*   VTD_MMIO_OFF_IQA_REG + 4: */   /* High 32-bits data. */
    12921296            {
    12931297                rcStrict = dmarIqaRegWrite(pDevIns, offReg, uRegWritten);
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