[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Mach branch, master, updated. v1.5-46-geaee942
From: |
Samuel Thibault |
Subject: |
[SCM] GNU Mach branch, master, updated. v1.5-46-geaee942 |
Date: |
Thu, 09 Jul 2015 12:19:49 +0000 |
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 eaee9424a120c289abc3eeeff331cb0d45efe971 (commit)
from 1e0429e5f39ec219cbef3af2752528b8a29bc1be (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 eaee9424a120c289abc3eeeff331cb0d45efe971
Author: Samuel Thibault <address@hidden>
Date: Thu Jul 9 14:13:25 2015 +0200
Allow non-privileged tasks to wire 64KiB task memory
* doc/mach.texi (vm_wire): Document that the host port does not have to be
privileged.
* include/mach/mach_hosts.defs (vm_wire): Use mach_port_t instead of
host_priv_t.
* vm/vm_map.h (vm_map): Add user_wired field.
* vm/vm_map.c (vm_map_setup): Initialize user_wired field to 0.
(vm_map_pageable_common, vm_map_entry_delete, vm_map_copy_overwrite,
vm_map_copyout_page_list, vm_map_copyin_page_list): When switching
user_wired_count field of entry between 0 and non-0, accumulate the
corresponding size into the user_wired field of map.
* vm/vm_user.c (vm_wire): Turn host parameter into port parameter, and
inline a version of convert_port_to_host_priv which records whether the host
port is privileged or not. When it is not privileged, check whether
the additional amount to user_wired will overcome 64KiB.
-----------------------------------------------------------------------
Summary of changes:
doc/mach.texi | 13 +++++++------
include/mach/mach_host.defs | 2 +-
vm/vm_map.c | 15 +++++++++++++++
vm/vm_map.h | 1 +
vm/vm_user.c | 27 ++++++++++++++++++++++++---
5 files changed, 48 insertions(+), 10 deletions(-)
hooks/post-receive
--
GNU Mach
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Mach branch, master, updated. v1.5-46-geaee942,
Samuel Thibault <=