Changeset 87652 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Feb 9, 2021 12:40:06 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 142694
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PDMAllIommu.cpp
r87494 r87652 25 25 26 26 #include <VBox/vmm/vmcc.h> 27 #include <iprt/string.h> 27 28 #ifdef IN_RING3 28 29 # include <iprt/mem.h> … … 122 123 if (RT_SUCCESS(rc)) 123 124 { 125 Assert(cbContig <= cbRead); 124 126 cbRead -= cbContig; 125 127 pvBuf = (void *)((uintptr_t)pvBuf + cbContig); … … 132 134 { 133 135 LogFunc(("IOMMU memory read failed. uDeviceId=%#x GCPhys=%#RGp cb=%zu rc=%Rrc\n", uDeviceId, GCPhys, cbRead, rc)); 136 137 /* 138 * We should initialize the read buffer on failure for devices that don't check 139 * return codes (but would verify the data). But we still want to propagate the 140 * error code from the IOMMU to the device, see @bugref{9936#c3}. 141 */ 142 memset(pvBuf, 0xff, cbRead); 134 143 break; 135 144 } … … 178 187 if (RT_SUCCESS(rc)) 179 188 { 189 Assert(cbContig <= cbWrite); 180 190 cbWrite -= cbContig; 181 191 pvBuf = (const void *)((uintptr_t)pvBuf + cbContig);
Note:
See TracChangeset
for help on using the changeset viewer.