Changeset 89453 in vbox
- Timestamp:
- Jun 2, 2021 7:49:24 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp
r89452 r89453 2003 2003 * @returns VBox status code. 2004 2004 * @param pDevIns The IOMMU device instance. 2005 * @param GCPhys eBaseThe output address of the translation.2005 * @param GCPhysBase The output address of the translation. 2006 2006 * @param cShift The page shift of the translation. 2007 2007 * @param fPerm The permissions granted for the translated. … … 2009 2009 * @param pMemReqRemap The DMA memory request remapping info. 2010 2010 */ 2011 static int dmarDrValidateAndUpdateIotlbe(PPDMDEVINS pDevIns, RTGCPHYS GCPhys eBase, uint8_t cShift, uint8_t fPerm,2011 static int dmarDrValidateAndUpdateIotlbe(PPDMDEVINS pDevIns, RTGCPHYS GCPhysBase, uint8_t cShift, uint8_t fPerm, 2012 2012 uint16_t idDomain, PDMARMEMREQREMAP pMemReqRemap) 2013 2013 { 2014 2014 Assert( pMemReqRemap->fTtm == VTD_TTM_LEGACY_MODE 2015 2015 || pMemReqRemap->fTtm == VTD_TTM_SCALABLE_MODE); 2016 Assert(!(GCPhys eBase & X86_PAGE_4K_OFFSET_MASK));2016 Assert(!(GCPhysBase & X86_PAGE_4K_OFFSET_MASK)); 2017 2017 2018 2018 /* Ensure the output address is not in the interrupt address range. */ 2019 if (GCPhys eBase - VBOX_MSI_ADDR_BASE >= VBOX_MSI_ADDR_SIZE)2020 { 2021 pMemReqRemap->Iotlbe.GCPhysBase = GCPhys eBase;2019 if (GCPhysBase - VBOX_MSI_ADDR_BASE >= VBOX_MSI_ADDR_SIZE) 2020 { 2021 pMemReqRemap->Iotlbe.GCPhysBase = GCPhysBase; 2022 2022 pMemReqRemap->Iotlbe.cShift = cShift; 2023 2023 pMemReqRemap->Iotlbe.fPerm = fPerm;
Note:
See TracChangeset
for help on using the changeset viewer.