VirtualBox

Changeset 36460 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Mar 29, 2011 12:52:21 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70843
Message:

PCI: fixed init-order issue

Location:
trunk/src/VBox/HostDrivers/VBoxPci
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c

    r36448 r36460  
    384384}
    385385
    386 DECLHIDDEN(int) vboxPciDevPowerStateChange(PRAWPCIDEVPORT pPort, PCIRAWPOWERSTATE  aState)
     386DECLHIDDEN(int) vboxPciDevPowerStateChange(PRAWPCIDEVPORT pPort, PCIRAWPOWERSTATE  aState, uint64_t *pu64Param)
    387387{
    388388    PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort);
     
    392392
    393393    rc = vboxPciOsDevPowerStateChange(pThis, aState);
     394
     395    if (aState == PCIRAW_POWER_ON)
     396    {
     397        /*
     398         * Let virtual device know about VM caps.
     399         */
     400        *pu64Param = VBOX_DRV_VMDATA(pThis)->pPerVmData->fVmCaps;
     401    }
     402    else
     403        pu64Param = 0;
     404
    394405
    395406    vboxPciDevUnlock(pThis);
     
    544555                pVmData->fVmCaps |= PCIRAW_VMFLAGS_HAS_IOMMU;
    545556#endif
     557            pThis->pPerVmData = pVmData;
    546558            pVmData->pDriverData = pThis;
    547559            return VINF_SUCCESS;
  • trunk/src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h

    r36448 r36460  
    2727
    2828#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35)
    29 # ifdef DEBUG_nike
     29//# ifdef DEBUG_nike
    3030#  define VBOX_WITH_IOMMU
    31 # endif
     31//# endif
    3232#endif
    3333
     
    9090
    9191/**
    92  * Per-VM data of the VBox PCI driver. Pointed to by pVM->rawpci.s.pOsData.
     92 * Per-VM data of the VBox PCI driver. Pointed to by pGVM->rawpci.s.pDriverData.
    9393 *
    9494 */
     
    100100#ifdef RT_OS_LINUX
    101101# ifdef VBOX_WITH_IOMMU
     102    /* IOMMU domain. */
    102103    struct iommu_domain* pIommuDomain;
    103104# endif
    104105#endif
    105     int32_t        fFlags;
     106    /* Back pointer to pGVM->rawpci.s. */
     107    PRAWPCIPERVM pPerVmData;
    106108} VBOXRAWPCIDRVVM;
    107109
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