linux-user: Rewrite target_shmat
commit78bc8ed9a8f092f6666d7a949ad67dac33cc014d
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 22 Feb 2024 23:24:38 +0000 (22 13:24 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Fri, 1 Mar 2024 18:09:55 +0000 (1 08:09 -1000)
treed04eabe7ee270205d5efc67d4d3de9f0d5783ad2
parent9f7c97324c273015812fe93b85d000335d6fa7c4
linux-user: Rewrite target_shmat

Handle combined host and guest alignment requirements.
Handle host and guest page size differences.
Handle SHM_EXEC.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/115
Tested-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/mmap.c