mbox series

[0/4] linux-user: shmat/shmdt improvements

Message ID 20230820204408.327348-1-richard.henderson@linaro.org
Headers show
Series linux-user: shmat/shmdt improvements | expand

Message

Richard Henderson Aug. 20, 2023, 8:44 p.m. UTC
A couple of points I noticed with bsd-user copying linux-user:

(1) Make sure to remap memory for reserved_va
(2) Use something better than an array for tracking shmat.


r~


Richard Henderson (4):
  linux-user: Move shmat and shmdt implementations to mmap.c
  linux-user: Use WITH_MMAP_LOCK_GUARD in target_{shmat,shmdt}
  linux-user: Fix shmdt
  linux-user: Track shm regions with an interval tree

 linux-user/user-mmap.h |   4 +
 linux-user/mmap.c      | 168 +++++++++++++++++++++++++++++++++++++++++
 linux-user/syscall.c   | 143 +----------------------------------
 3 files changed, 176 insertions(+), 139 deletions(-)