- Timestamp:
- Mar 29, 2021 12:52:12 PM (4 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevIommuIntel.cpp
r88260 r88310 21 21 *********************************************************************************************************************************/ 22 22 #define LOG_GROUP LOG_GROUP_DEV_IOMMU 23 #include <VBox/vmm/pdmdev.h>24 #include <VBox/iommu-intel.h>23 #include "VBoxDD.h" 24 #include "DevIommuIntel.h" 25 25 26 26 #include <iprt/string.h> 27 28 #include "VBoxDD.h"29 27 30 28 -
trunk/src/VBox/Devices/PC/DevACPI.cpp
r88281 r88310 47 47 #ifdef VBOX_WITH_IOMMU_AMD 48 48 # include "../Bus/DevIommuAmd.h" 49 #endif 50 #ifdef VBOX_WITH_IOMMU_INTEL 51 # include "../Bus/DevIommuIntel.h" 49 52 #endif 50 53 … … 863 866 ACPIDMAR Dmar; 864 867 ACPIDRHD Drhd; 868 /* ACPIDMARDEVSCOPE DevScope; */ 865 869 } ACPITBLDMAR; 866 870 #endif /* VBOX_WITH_IOMMU_INTEL */ … … 3357 3361 acpiR3PhysCopy(pDevIns, addr, (const uint8_t *)&Ivrs, sizeof(Ivrs)); 3358 3362 } 3359 #endif 3363 #endif /* VBOX_WITH_IOMMU_AMD */ 3360 3364 3361 3365 … … 3369 3373 RT_ZERO(VtdTable); 3370 3374 3371 /* VT-d /DMAR header. */3375 /* VT-d Table. */ 3372 3376 acpiR3PrepareHeader(pThis, &VtdTable.Dmar.Hdr, "DMAR", sizeof(ACPITBLVTD), ACPI_DMAR_REVISION); 3373 3377 3374 /** @todo Populate rest of DMAR table. */ 3378 /* DMAR. */ 3379 uint8_t cPhysAddrBits; 3380 uint8_t cLinearAddrBits; 3381 PDMDevHlpCpuGetGuestAddrWidths(pDevIns, &cPhysAddrBits, &cLinearAddrBits); 3382 Assert(cPhysAddrBits > 0); NOREF(cLinearAddrBits); 3383 VtdTable.Dmar.uHostAddrWidth = cPhysAddrBits - 1; 3384 VtdTable.Dmar.fFlags = VTD_ACPI_DMAR_FLAGS; 3385 3386 /* DRHD. */ 3387 VtdTable.Drhd.cbLength = sizeof(ACPIDRHD) /* + sizeof(VtdTable.DevScope) */; 3388 VtdTable.Drhd.fFlags = ACPI_DRHD_F_INCLUDE_PCI_ALL; 3389 VtdTable.Drhd.uRegBaseAddr = VTD_MMIO_BASE_ADDR; 3375 3390 3376 3391 /* Finally, compute checksum. */ … … 3380 3395 acpiR3PhysCopy(pDevIns, addr, (const uint8_t *)&VtdTable, sizeof(VtdTable)); 3381 3396 } 3382 #endif 3397 #endif /* VBOX_WITH_IOMMU_INTEL */ 3383 3398 3384 3399
Note:
See TracChangeset
for help on using the changeset viewer.