Changeset 36460 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Mar 29, 2011 12:52:21 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70843
- Location:
- trunk/src/VBox/HostDrivers/VBoxPci
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c
r36448 r36460 384 384 } 385 385 386 DECLHIDDEN(int) vboxPciDevPowerStateChange(PRAWPCIDEVPORT pPort, PCIRAWPOWERSTATE aState )386 DECLHIDDEN(int) vboxPciDevPowerStateChange(PRAWPCIDEVPORT pPort, PCIRAWPOWERSTATE aState, uint64_t *pu64Param) 387 387 { 388 388 PVBOXRAWPCIINS pThis = DEVPORT_2_VBOXRAWPCIINS(pPort); … … 392 392 393 393 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 394 405 395 406 vboxPciDevUnlock(pThis); … … 544 555 pVmData->fVmCaps |= PCIRAW_VMFLAGS_HAS_IOMMU; 545 556 #endif 557 pThis->pPerVmData = pVmData; 546 558 pVmData->pDriverData = pThis; 547 559 return VINF_SUCCESS; -
trunk/src/VBox/HostDrivers/VBoxPci/VBoxPciInternal.h
r36448 r36460 27 27 28 28 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35) 29 # ifdef DEBUG_nike29 //# ifdef DEBUG_nike 30 30 # define VBOX_WITH_IOMMU 31 # endif31 //# endif 32 32 #endif 33 33 … … 90 90 91 91 /** 92 * Per-VM data of the VBox PCI driver. Pointed to by p VM->rawpci.s.pOsData.92 * Per-VM data of the VBox PCI driver. Pointed to by pGVM->rawpci.s.pDriverData. 93 93 * 94 94 */ … … 100 100 #ifdef RT_OS_LINUX 101 101 # ifdef VBOX_WITH_IOMMU 102 /* IOMMU domain. */ 102 103 struct iommu_domain* pIommuDomain; 103 104 # endif 104 105 #endif 105 int32_t fFlags; 106 /* Back pointer to pGVM->rawpci.s. */ 107 PRAWPCIPERVM pPerVmData; 106 108 } VBOXRAWPCIDRVVM; 107 109
Note:
See TracChangeset
for help on using the changeset viewer.