This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mach".
The branch, master has been updated
via 9ae4d99c1d1e7c9c0977cebb4df9b86fa92cca94 (commit)
from 1269629d90b28a23ef9742645cfaf657ea3165bb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9ae4d99c1d1e7c9c0977cebb4df9b86fa92cca94
Author: Diego Nieto Cid <[email protected]>
Date: Sun Sep 21 21:23:42 2025 +0100
Implement per-task virtual memory limit
* doc/mach.texi: add a "Memory Limitations" section to document the new
interfaces.
* include/mach/gnumach.defs: (vm_set_size_limit) new routine
(vm_get_size_limit) likewise
* kern/task.c: (task_create_kernel) if parent_task is not null copy
virtual memory limit
* tests/test-vm.c: (test_vm_limit) add test for the new routines
* vm/vm_map.h: (struct vm_map) new fields size_none, size_cur_limit and
size_max_limit
(vm_map_find_entry) add new parameters cur_protection and max_protection
* vm/vm_map.c: (vm_map_setup) initialize new fields
(vm_map_enforce_limit) new function
(vm_map_copy_limits) new function
(vm_map_find_entry) add protection and max_protection parameters.
call limit enforcer function
(vm_map_enter) likewise
(vm_map_copyout) likewise
(vm_map_copyout_page_list) likewise
(vm_map_fork) copy parent limit to the new map and compute and set
size_none of the new map
* vm/vm_user.c: (vm_set_size_limit) new function
(vm_get_size_limit) likewise
* xen/grant.c: update call to vm_map_find_entry to pass protection
parameters
Message-ID:
<0b71f4f89b7cc2b159893a805480d7493d522d60.1758485757.git.dnie...@gmail.com>
-----------------------------------------------------------------------
Summary of changes:
doc/mach.texi | 29 +++++++++
include/mach/gnumach.defs | 34 +++++++++++
kern/task.c | 5 ++
tests/test-vm.c | 96 ++++++++++++++++++++++++++++++
vm/vm_kern.c | 22 +++----
vm/vm_map.c | 148 +++++++++++++++++++++++++++++++++++++++++++---
vm/vm_map.h | 15 ++++-
vm/vm_user.c | 69 +++++++++++++++++++++
xen/grant.c | 3 +-
9 files changed, 400 insertions(+), 21 deletions(-)
hooks/post-receive
--
GNU Mach