- Timestamp:
- Jun 19, 2023 7:14:10 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedFolders/vbsf.cpp
r99802 r100220 42 42 #include <VBox/AssertGuest.h> 43 43 #include <VBox/param.h> 44 #include <VBox/VMMDev.h> 44 45 #include <iprt/alloc.h> 45 46 #include <iprt/assert.h> … … 1229 1230 Assert(iPage < pPages->cPages); 1230 1231 1232 /** @todo r=aeichner This was just using PAGE_SIZE before which doesn't work if the host and guest use different 1233 * page sizes (think of 16KiB on macOS.arm64 vs linux.arm64) causing data corruption, yay! VMMDev now imposes a page size of 4KiB and 1234 * VBOXHGCMSVCPARMPAGES should really have a cbPage member to indicate the used page size instead of dragging 1235 * in VMMDev.h here. OTOH the size of VBOXHGCMSVCPARMPAGES can be part of a saved state which would mean increasing 1236 * the HGCM saved state version... */ 1237 1231 1238 /* Current page. */ 1232 1239 void *pvSeg; 1233 1240 paSegs[iSeg].pvSeg = pvSeg = pPages->papvPages[iPage]; 1234 uint32_t cbSeg = PAGE_SIZE - (uint32_t)((uintptr_t)pvSeg &PAGE_OFFSET_MASK);1241 uint32_t cbSeg = VMMDEV_PAGE_SIZE - (uint32_t)((uintptr_t)pvSeg & VMMDEV_PAGE_OFFSET_MASK); 1235 1242 iPage++; 1236 1243 … … 1240 1247 { 1241 1248 iPage++; 1242 cbSeg += PAGE_SIZE;1249 cbSeg += VMMDEV_PAGE_SIZE; 1243 1250 } 1244 1251
Note:
See TracChangeset
for help on using the changeset viewer.