Changeset 36436 in vbox
- Timestamp:
- Mar 25, 2011 3:28:17 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/rawpci.h
r36400 r36436 50 50 } PCIRAWMEMINFOACTION; 51 51 52 /* Forward declaration. */ 53 struct RAWPCIVM; 54 52 55 /** 53 56 * Callback to notify raw PCI subsystem about mapping/unmapping of … … 55 58 * RAM pages with IOMMU, so that it could allow DMA for PCI devices 56 59 * directly from the guest RAM. 57 * Region shall be one or more contigous (both host and guest) pages 58 * of physical memory. 59 * 60 * Region shall be one or more contigous (both host and guest) pages 61 * of physical memory. 62 * 63 * @returns VBox status code. 64 * 60 65 * @param pVM VM pointer. 61 * @param HostStart Physical address of region start on the host. 66 * @param HostStart Physical address of region start on the host. 62 67 * @param GuestStart Physical address of region start on the guest. 63 68 * @param cMemSize Region size in bytes. 64 * @param Action Action performed. 65 66 */ 67 typedef DECLCALLBACK(void) FNRAWPCICONTIGPHYSMEMINFO(PVM pVM, RTHCPHYS HostStart, RTGCPHYS GuestStart, uint64_t cMemSize, PCIRAWMEMINFOACTION Action); 69 * @param Action Action performed (i.e. if page was mapped or unmapped). 70 */ 71 typedef DECLCALLBACK(int) FNRAWPCICONTIGPHYSMEMINFO(struct RAWPCIVM* pVmData, RTHCPHYS HostStart, RTGCPHYS GuestStart, uint64_t cMemSize, PCIRAWMEMINFOACTION Action); 68 72 typedef FNRAWPCICONTIGPHYSMEMINFO *PFNRAWPCICONTIGPHYSMEMINFO; 69 73 … … 307 311 PCIRAW_POWER_SUSPEND, 308 312 /* Resume. */ 309 PCIRAW_POWER_RESUME, 313 PCIRAW_POWER_RESUME, 310 314 /** The usual 32-bit type blow up. */ 311 315 PCIRAW_POWER_32BIT_HACK = 0x7fffffff -
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c
r36422 r36436 563 563 PVBOXRAWPCIDRVVM pThis = (PVBOXRAWPCIDRVVM)pPciData->pDriverData; 564 564 565 #ifdef VBOX_WITH_IOMMU 566 /* If we have IOMMU, need to unmap all guest's physical pages from IOMMU on VM termination. */ 567 #endif 568 565 569 vboxPciOsDeinitVm(pThis, pVM); 566 570
Note:
See TracChangeset
for help on using the changeset viewer.