fix: frame allocation now invalidates the victim process page directory, not the caller's

This commit is contained in:
Themis Demetriades
2024-12-04 16:41:13 +00:00
parent 1b73e415d7
commit fb73d694bf

View File

@@ -96,7 +96,7 @@ frame_alloc (enum palloc_flags flags, void *upage, struct thread *owner)
/* Mark page as 'not present' and flag the page directory as having
been modified *before* eviction begins to prevent the owner of the
victim page from accessing/modifying it mid-eviction. */
pagedir_clear_page (owner->pagedir, upage);
pagedir_clear_page (victim->owner->pagedir, victim->upage);
// TODO: Lock PTE of victim page for victim process.