VirtualBox

Changeset 87711 in vbox


Ignore:
Timestamp:
Feb 11, 2021 4:53:34 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142755
Message:

AMD IOMMU: bugref:9654 Don't hold PDM lock while reading commands from guest memory, also use the PCI read/write function.

File:
1 edited

Legend:

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

    r87692 r87711  
    45454545                /* Read the entire command buffer from memory (avoids multiple PGM calls). */
    45464546                RTGCPHYS const GCPhysCmdBufBase = pThis->CmdBufBaseAddr.n.u40Base << X86_PAGE_4K_SHIFT;
    4547                 int rc = PDMDevHlpPhysRead(pDevIns, GCPhysCmdBufBase, pvCmds, cbCmdBuf);
     4547
     4548                IOMMU_UNLOCK(pDevIns, pThisCC);
     4549                int rc = PDMDevHlpPCIPhysRead(pDevIns, GCPhysCmdBufBase, pvCmds, cbCmdBuf);
     4550                IOMMU_LOCK(pDevIns, pThisCC);
     4551
    45484552                if (RT_SUCCESS(rc))
    45494553                {
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