VirtualBox

Changeset 86483 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Oct 8, 2020 6:53:36 AM (4 years ago)
Author:
vboxsync
Message:

AMD IOMMU: bugref:9654 LsiLogic: Use PCI interfaces while reading/writing guest physical memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r85994 r86483  
    18981898
    18991899        AssertPtr(pvSeg);
    1900         PDMDevHlpPhysReadUser(pDevIns, GCPhys, pvSeg, cbSeg);
     1900        PDMDevHlpPCIPhysReadUser(pDevIns, GCPhys, pvSeg, cbSeg);
    19011901        GCPhys += cbSeg;
    19021902        cbCopy -= cbSeg;
     
    19711971
    19721972            /* Read the entry. */
    1973             PDMDevHlpPhysReadMeta(pDevIns, GCPhysSgEntryNext, &SGEntry, sizeof(MptSGEntryUnion));
     1973            PDMDevHlpPCIPhysReadMeta(pDevIns, GCPhysSgEntryNext, &SGEntry, sizeof(MptSGEntryUnion));
    19741974
    19751975# ifdef LOG_ENABLED
     
    20162016            MptSGEntryChain SGEntryChain;
    20172017
    2018             PDMDevHlpPhysReadMeta(pDevIns, GCPhysSegmentStart + cChainOffsetNext, &SGEntryChain, sizeof(MptSGEntryChain));
     2018            PDMDevHlpPCIPhysReadMeta(pDevIns, GCPhysSegmentStart + cChainOffsetNext, &SGEntryChain, sizeof(MptSGEntryChain));
    20192019
    20202020            AssertMsg(SGEntryChain.u2ElementType == MPTSGENTRYTYPE_CHAIN, ("Invalid SG entry type\n"));
     
    32653265                LogFlow(("cbBuffer=%u cbPage=%u\n", cbBuffer, cbPage));
    32663266
    3267                 PDMDevHlpPhysReadMeta(pDevIns, GCPhysAddrPageBuffer, pbPageData,
    3268                                       RT_MIN(cbBuffer, cbPage));
     3267                PDMDevHlpPCIPhysReadMeta(pDevIns, GCPhysAddrPageBuffer, pbPageData, RT_MIN(cbBuffer, cbPage));
    32693268            }
    32703269            break;
     
    41494148
    41504149            /* Read the message header from the guest first. */
    4151             PDMDevHlpPhysReadMeta(pDevIns, GCPhysMessageFrameAddr, &GuestRequest, sizeof(MptMessageHdr));
     4150            PDMDevHlpPCIPhysReadMeta(pDevIns, GCPhysMessageFrameAddr, &GuestRequest, sizeof(MptMessageHdr));
    41524151
    41534152            /* Determine the size of the request. */
     
    41974196            {
    41984197                /* Read the complete message frame from guest memory now. */
    4199                 PDMDevHlpPhysReadMeta(pDevIns, GCPhysMessageFrameAddr, &GuestRequest, cbRequest);
     4198                PDMDevHlpPCIPhysReadMeta(pDevIns, GCPhysMessageFrameAddr, &GuestRequest, cbRequest);
    42004199
    42014200                /* Handle SCSI I/O requests now. */
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