Notify schemes when mmaps are unmapped.

This commit is contained in:
4lDO2
2023-07-12 15:33:18 +02:00
parent 02f04752e8
commit d3ecedefd9
5 changed files with 34 additions and 9 deletions
-2
View File
@@ -34,8 +34,6 @@ pub fn map_flags(page_flags: PageFlags<RmmA>) -> MapFlags {
let mut flags = MapFlags::PROT_READ;
if page_flags.has_write() { flags |= MapFlags::PROT_WRITE; }
if page_flags.has_execute() { flags |= MapFlags::PROT_EXEC; }
// TODO: MAP_SHARED/MAP_PRIVATE (requires that grants keep track of what they borrow and if
// they borrow shared or CoW).
flags
}