Changeset 88333 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Mar 31, 2021 4:29:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r88310 r88333 209 209 SYSTEM_INFO_INDEX_PREF64_MEMORY_MAX = 30, 210 210 SYSTEM_INFO_INDEX_NVME_ADDRESS = 31, /**< First NVMe controller PCI address, or 0 */ 211 SYSTEM_INFO_INDEX_IOMMU_A MD_ADDRESS = 32, /**< AMDIOMMU PCI address, or 0 */211 SYSTEM_INFO_INDEX_IOMMU_ADDRESS = 32, /**< IOMMU PCI address, or 0 */ 212 212 SYSTEM_INFO_INDEX_SB_IOAPIC_ADDRESS = 33, /**< Southbridge I/O APIC (needed by AMD IOMMU) PCI address, or 0 */ 213 213 SYSTEM_INFO_INDEX_END = 34, … … 402 402 /** PCI address of the host bus controller device. */ 403 403 uint32_t u32HbcPciAddress; 404 /** PCI address of the AMDIOMMU device. */405 uint32_t u32Iommu AmdPciAddress;404 /** PCI address of the IOMMU device. */ 405 uint32_t u32IommuPciAddress; 406 406 /** PCI address of the southbridge I/O APIC device. */ 407 407 uint32_t u32SbIoApicPciAddress; … … 1655 1655 break; 1656 1656 1657 case SYSTEM_INFO_INDEX_IOMMU_A MD_ADDRESS:1658 *pu32 = pThis->u32Iommu AmdPciAddress;1657 case SYSTEM_INFO_INDEX_IOMMU_ADDRESS: 1658 *pu32 = pThis->u32IommuPciAddress; 1659 1659 break; 1660 1660 … … 3220 3220 3221 3221 uint16_t const uIommuBus = 0; 3222 uint16_t const uIommuDev = RT_HI_U16(pThis->u32Iommu AmdPciAddress);3223 uint16_t const uIommuFn = RT_LO_U16(pThis->u32Iommu AmdPciAddress);3222 uint16_t const uIommuDev = RT_HI_U16(pThis->u32IommuPciAddress); 3223 uint16_t const uIommuFn = RT_LO_U16(pThis->u32IommuPciAddress); 3224 3224 3225 3225 /* IVRS header. */ … … 3387 3387 VtdTable.Drhd.cbLength = sizeof(ACPIDRHD) /* + sizeof(VtdTable.DevScope) */; 3388 3388 VtdTable.Drhd.fFlags = ACPI_DRHD_F_INCLUDE_PCI_ALL; 3389 VtdTable.Drhd.uRegBaseAddr = VTD_MMIO_BASE_ ADDR;3389 VtdTable.Drhd.uRegBaseAddr = VTD_MMIO_BASE_PHYSADDR; 3390 3390 3391 3391 /* Finally, compute checksum. */ … … 4074 4074 "|Parallel0Irq" 4075 4075 "|Parallel1Irq" 4076 "|IommuIntelEnabled" 4076 4077 "|IommuAmdEnabled" 4077 "|Iommu AmdPciAddress"4078 "|IommuPciAddress" 4078 4079 "|SbIoApicPciAddress" 4079 4080 , ""); … … 4242 4243 { 4243 4244 /* Query IOMMU AMD address (IOMA). */ 4244 rc = pHlp->pfnCFGMQueryU32Def(pCfg, "Iommu AmdPciAddress", &pThis->u32IommuAmdPciAddress, 0);4245 rc = pHlp->pfnCFGMQueryU32Def(pCfg, "IommuPciAddress", &pThis->u32IommuPciAddress, 0); 4245 4246 if (RT_FAILURE(rc)) 4246 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"Iommu AmdAddress\""));4247 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"IommuPciAddress\"")); 4247 4248 4248 4249 /* Query southbridge I/O APIC address (required when an AMD IOMMU is configured). */ … … 4254 4255 /** @todo We should eventually not assign the IOMMU at this address, see 4255 4256 * @bugref{9654#c53}. */ 4256 if (!pThis->u32Iommu AmdPciAddress)4257 if (!pThis->u32IommuPciAddress) 4257 4258 LogRel(("ACPI: Warning! AMD IOMMU assigned the PCI host bridge address.\n")); 4258 4259 … … 4272 4273 if (RT_FAILURE(rc)) 4273 4274 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"IommuIntelEnabled\"")); 4275 4276 if (pThis->fUseIommuIntel) 4277 { 4278 /* Query IOMMU Intel address. */ 4279 rc = pHlp->pfnCFGMQueryU32Def(pCfg, "IommuPciAddress", &pThis->u32IommuPciAddress, 0); 4280 if (RT_FAILURE(rc)) 4281 return PDMDEV_SET_ERROR(pDevIns, rc, N_("Configuration error: Failed to read \"IommuPciAddress\"")); 4282 } 4274 4283 #endif 4275 4284
Note:
See TracChangeset
for help on using the changeset viewer.