VirtualBox

Ignore:
Timestamp:
Oct 28, 2020 4:32:46 PM (4 years ago)
Author:
vboxsync
Message:

AMD IOMMU: bugref:9654 DevIchAc97: Use PCI versions of the function that access guest memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevIchAc97.cpp

    r86520 r86741  
    849849
    850850    AC97BDLE BDLE;
    851     PDMDevHlpPhysRead(pDevIns, pRegs->bdbar + pRegs->civ * sizeof(AC97BDLE), &BDLE, sizeof(AC97BDLE));
     851    PDMDevHlpPCIPhysRead(pDevIns, pRegs->bdbar + pRegs->civ * sizeof(AC97BDLE), &BDLE, sizeof(AC97BDLE));
    852852    pRegs->bd_valid   = 1;
    853853# ifndef RT_LITTLE_ENDIAN
     
    15721572    {
    15731573        AC97BDLE BDLE;
    1574         PDMDevHlpPhysRead(pDevIns, u64BDLBase + i * sizeof(AC97BDLE), &BDLE, sizeof(AC97BDLE));
     1574        PDMDevHlpPCIPhysRead(pDevIns, u64BDLBase + i * sizeof(AC97BDLE), &BDLE, sizeof(AC97BDLE));
    15751575
    15761576# ifndef RT_LITTLE_ENDIAN
     
    28942894                if (cbDst)
    28952895                {
    2896                     int rc2 = PDMDevHlpPhysRead(pDevIns, pRegs->bd.addr, (uint8_t *)pvDst, cbDst);
     2896                    int rc2 = PDMDevHlpPCIPhysRead(pDevIns, pRegs->bd.addr, (uint8_t *)pvDst, cbDst);
    28972897                    AssertRC(rc2);
    28982898
     
    29192919                if (cbSrc)
    29202920                {
    2921 /** @todo r=bird: Just curious, DevHDA uses PDMDevHlpPCIPhysWrite here.  So,
    2922  *        is AC97 not subject to PCI busmaster enable/disable? */
    2923                     int rc2 = PDMDevHlpPhysWrite(pDevIns, pRegs->bd.addr, (uint8_t *)pvSrc, cbSrc);
     2921                    int rc2 = PDMDevHlpPCIPhysWrite(pDevIns, pRegs->bd.addr, (uint8_t *)pvSrc, cbSrc);
    29242922                    AssertRC(rc2);
    29252923
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