Changeset 93554 in vbox for trunk/src/VBox/VMM/VMMAll/EMAll.cpp
- Timestamp:
- Feb 2, 2022 10:57:02 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/EMAll.cpp
r93115 r93554 899 899 * Figure how much we can or must read. 900 900 */ 901 size_t cbToRead = PAGE_SIZE - (uSrcAddr & PAGE_OFFSET_MASK);901 size_t cbToRead = GUEST_PAGE_SIZE - (uSrcAddr & (GUEST_PAGE_SIZE - 1)); 902 902 if (cbToRead > cbMaxRead) 903 903 cbToRead = cbMaxRead; … … 923 923 { 924 924 HMInvalidatePage(pVCpu, uSrcAddr); 925 if (((uSrcAddr + cbToRead - 1) >> PAGE_SHIFT) != (uSrcAddr >>PAGE_SHIFT))925 if (((uSrcAddr + cbToRead - 1) >> GUEST_PAGE_SHIFT) != (uSrcAddr >> GUEST_PAGE_SHIFT)) 926 926 HMInvalidatePage(pVCpu, uSrcAddr + cbToRead - 1); 927 927 }
Note:
See TracChangeset
for help on using the changeset viewer.