Refreshes copy and send the 4 KiB parts of a page that were written (VICTORY_PAGE_PARTS=0: the 64 KiB page); the early asking is off
Where the kernel or a landing names them; what is checked stays a page. VICTORY_ASK_EARLY=<ms> turns the early asking on. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
f672130364
commit
3ead56e175
3 files changed
+200
-24
No files matched your search
@@ -8756,7 +8756,8 @@ mod refresh_tests {
|
||||
assert_eq!(look(true, "taken"), 0);
|
||||
// SAFETY: the test's own memory.
|
||||
unsafe { ((region + 600) as *mut u8).write_volatile(1) };
|
||||
assert_eq!(look(false, "written at its end"), PAGE - 500);
|
||||
// (The kernel names the 4 KiB, the guards only the block.)
|
||||
assert_eq!(look(false, "written at its end"), if view { PAGE } else { 4096 } - 500);
|
||||
assert_eq!(look(true, "taken again"), 0);
|
||||
// Outside the range, on its last page.
|
||||
// SAFETY: as above.
|
||||
|
||||
Reference in new issue
Block a user