VirtualBox

Changeset 88332 in vbox for trunk/src


Ignore:
Timestamp:
Mar 31, 2021 4:28:43 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143558
Message:

Intel IOMMU: bugref:9967 WIP.

Location:
trunk/src/VBox/Devices/Bus
Files:
2 edited

Legend:

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

    r88329 r88332  
    809809#endif
    810810
     811    /** @todo VTD: Intercept PCI config space accesses for debugging. */
     812#if 0
     813    /*
     814     * Intercept PCI config. space accesses.
     815     */
     816    rc = PDMDevHlpPCIInterceptConfigAccesses(pDevIns, pPciDev, ..);
     817    AssertLogRelRCReturn(rc, rc);
     818#endif
     819
     820    /*
     821     * Register MMIO region.
     822     */
     823    AssertCompile(!(VTD_MMIO_BASE_PHYSADDR & X86_PAGE_4K_OFFSET_MASK));
     824    rc = PDMDevHlpMmioCreateAndMap(pDevIns, VTD_MMIO_BASE_PHYSADDR, VTD_MMIO_SIZE, iommuIntelMmioWrite, iommuIntelMmioRead,
     825                                   IOMMMIO_FLAGS_READ_DWORD_QWORD | IOMMMIO_FLAGS_WRITE_DWORD_QWORD_ZEROED,
     826                                   "Intel-IOMMU", &pThis->hMmio);
     827    AssertRCReturn(rc, rc);
     828
    811829    return VERR_NOT_IMPLEMENTED;
    812830}
  • trunk/src/VBox/Devices/Bus/DevIommuIntel.h

    r88327 r88332  
    3636
    3737/** The MMIO base address of the DMAR unit (taken from real hardware). */
    38 #define VTD_MMIO_BASE_ADDR                          0xfed90000
    39 
     38#define VTD_MMIO_BASE_PHYSADDR                      UINT64_C(0xfed90000)
     39/** The size of the MMIO region (in bytes). */
     40#define VTD_MMIO_SIZE                               4096
    4041
    4142#endif /* !VBOX_INCLUDED_SRC_Bus_DevIommuIntel_h */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette