Changeset 88638 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Apr 22, 2021 5:40:05 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143951
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMDevHlp.cpp
r88565 r88638 1870 1870 #if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL) 1871 1871 int rc = pdmIommuMemAccessRead(pDevIns, pPciDev, GCPhys, pvBuf, cbRead, fFlags); 1872 if (RT_SUCCESS(rc) || rc != VERR_IOMMU_NOT_PRESENT) 1872 if ( rc == VERR_IOMMU_NOT_PRESENT 1873 || rc == VERR_IOMMU_CANNOT_CALL_SELF) 1874 { /* likely - ASSUMING most VMs won't be configured with an IOMMU. */ } 1875 else 1873 1876 return rc; 1874 1877 #endif … … 1904 1907 #if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL) 1905 1908 int rc = pdmIommuMemAccessWrite(pDevIns, pPciDev, GCPhys, pvBuf, cbWrite, fFlags); 1906 if (RT_SUCCESS(rc) || rc != VERR_IOMMU_NOT_PRESENT) 1909 if ( rc == VERR_IOMMU_NOT_PRESENT 1910 || rc == VERR_IOMMU_CANNOT_CALL_SELF) 1911 { /* likely - ASSUMING most VMs won't be configured with an IOMMU. */ } 1912 else 1907 1913 return rc; 1908 1914 #endif … … 1935 1941 #if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL) 1936 1942 int rc = pdmR3IommuMemAccessWriteCCPtr(pDevIns, pPciDev, GCPhys, fFlags, ppv, pLock); 1937 if (RT_SUCCESS(rc) || rc != VERR_IOMMU_NOT_PRESENT) 1943 if ( rc == VERR_IOMMU_NOT_PRESENT 1944 || rc == VERR_IOMMU_CANNOT_CALL_SELF) 1945 { /* likely - ASSUMING most VMs won't be configured with an IOMMU. */ } 1946 else 1938 1947 return rc; 1939 1948 #endif … … 1966 1975 #if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL) 1967 1976 int rc = pdmR3IommuMemAccessReadCCPtr(pDevIns, pPciDev, GCPhys, fFlags, ppv, pLock); 1968 if (RT_SUCCESS(rc) || rc != VERR_IOMMU_NOT_PRESENT) 1977 if ( rc == VERR_IOMMU_NOT_PRESENT 1978 || rc == VERR_IOMMU_CANNOT_CALL_SELF) 1979 { /* likely - ASSUMING most VMs won't be configured with an IOMMU. */ } 1980 else 1969 1981 return rc; 1970 1982 #endif … … 1998 2010 #if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL) 1999 2011 int rc = pdmR3IommuMemAccessBulkWriteCCPtr(pDevIns, pPciDev, cPages, paGCPhysPages, fFlags, papvPages, paLocks); 2000 if (RT_SUCCESS(rc) || rc != VERR_IOMMU_NOT_PRESENT) 2012 if ( rc == VERR_IOMMU_NOT_PRESENT 2013 || rc == VERR_IOMMU_CANNOT_CALL_SELF) 2014 { /* likely - ASSUMING most VMs won't be configured with an IOMMU. */ } 2015 else 2001 2016 return rc; 2002 2017 #endif … … 2030 2045 #if defined(VBOX_WITH_IOMMU_AMD) || defined(VBOX_WITH_IOMMU_INTEL) 2031 2046 int rc = pdmR3IommuMemAccessBulkReadCCPtr(pDevIns, pPciDev, cPages, paGCPhysPages, fFlags, papvPages, paLocks); 2032 if (RT_SUCCESS(rc) || rc != VERR_IOMMU_NOT_PRESENT) 2047 if ( rc == VERR_IOMMU_NOT_PRESENT 2048 || rc == VERR_IOMMU_CANNOT_CALL_SELF) 2049 { /* likely - ASSUMING most VMs won't be configured with an IOMMU. */ } 2050 else 2033 2051 return rc; 2034 2052 #endif -
trunk/src/VBox/VMM/VMMR3/PDMDevHlpTracing.cpp
r87477 r88638 420 420 #ifdef VBOX_WITH_IOMMU_AMD 421 421 int rc = pdmIommuMemAccessRead(pDevIns, pPciDev, GCPhys, pvBuf, cbRead, fFlags); 422 if (RT_SUCCESS(rc) || rc != VERR_IOMMU_NOT_PRESENT) 422 if ( rc == VERR_IOMMU_NOT_PRESENT 423 || rc == VERR_IOMMU_CANNOT_CALL_SELF) 424 { /* likely - ASSUMING most VMs won't be configured with an IOMMU. */ } 425 else 423 426 return rc; 424 427 #endif … … 454 457 #ifdef VBOX_WITH_IOMMU_AMD 455 458 int rc = pdmIommuMemAccessWrite(pDevIns, pPciDev, GCPhys, pvBuf, cbWrite, fFlags); 456 if (RT_SUCCESS(rc) || rc != VERR_IOMMU_NOT_PRESENT) 459 if ( rc == VERR_IOMMU_NOT_PRESENT 460 || rc == VERR_IOMMU_CANNOT_CALL_SELF) 461 { /* likely - ASSUMING most VMs won't be configured with an IOMMU. */ } 462 else 457 463 return rc; 458 464 #endif
Note:
See TracChangeset
for help on using the changeset viewer.