VirtualBox

Changeset 36436 in vbox


Ignore:
Timestamp:
Mar 25, 2011 3:28:17 PM (14 years ago)
Author:
vboxsync
Message:

PCI: more IOMMU bits

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/rawpci.h

    r36400 r36436  
    5050} PCIRAWMEMINFOACTION;
    5151
     52/* Forward declaration. */
     53struct RAWPCIVM;
     54
    5255/**
    5356 * Callback to notify raw PCI subsystem about mapping/unmapping of
     
    5558 * RAM pages with IOMMU, so that it could allow DMA for PCI devices
    5659 * 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 *
    6065 * @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.
    6267 * @param   GuestStart    Physical address of region start on the guest.
    6368 * @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 */
     71typedef DECLCALLBACK(int) FNRAWPCICONTIGPHYSMEMINFO(struct RAWPCIVM* pVmData, RTHCPHYS HostStart, RTGCPHYS GuestStart, uint64_t cMemSize, PCIRAWMEMINFOACTION Action);
    6872typedef FNRAWPCICONTIGPHYSMEMINFO *PFNRAWPCICONTIGPHYSMEMINFO;
    6973
     
    307311    PCIRAW_POWER_SUSPEND,
    308312    /* Resume. */
    309     PCIRAW_POWER_RESUME, 
     313    PCIRAW_POWER_RESUME,
    310314    /** The usual 32-bit type blow up. */
    311315    PCIRAW_POWER_32BIT_HACK = 0x7fffffff
  • trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c

    r36422 r36436  
    563563        PVBOXRAWPCIDRVVM pThis = (PVBOXRAWPCIDRVVM)pPciData->pDriverData;
    564564
     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
    565569        vboxPciOsDeinitVm(pThis, pVM);
    566570
Note: See TracChangeset for help on using the changeset viewer.

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